| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- /*!
- Build based on gin-vue-admin
- Time : 1757946830000 */
- import{s as e,a_ as t,l as n,a as r,ap as o,g as i,c as a,o as u,f as s,w as l,h as c,v as f,x as d,E as p,P as h,R as g,q as v,U as y,bv as m,V as b,W as w}from"./index.DlqNVRUO.js";import{g as E}from"./image.GvU-S7BA.js";const D=t=>e({url:"/info/createInfo",method:"post",data:t}),C=t=>e({url:"/info/deleteInfo",method:"delete",params:t}),x=t=>e({url:"/info/deleteInfoByIds",method:"delete",params:t}),S=t=>e({url:"/info/updateInfo",method:"put",data:t}),A=t=>e({url:"/info/findInfo",method:"get",params:t}),O=t=>e({url:"/info/getInfoList",method:"get",params:t}),k=()=>e({url:"/info/getInfoDataSource",method:"get"}),B=Object.assign({name:"UploadCommon"},{__name:"selectFile",props:t({limit:{type:Number,default:3},accept:{type:String,default:""}},{modelValue:{type:Array},modelModifiers:{}}),emits:t(["on-success","on-error"],["update:modelValue"]),setup(e,{emit:t}){const h=n().token,g=r(!1),v=o(e,"modelValue"),y=r(v.value||[]),m=t,b=e=>{const{data:t,code:n}=e;if(0!==n)return p({type:"error",message:"上传失败"+e.msg}),void y.value.pop();v.value.push({name:t.file.name,url:t.file.url}),m("on-success",e)},w=e=>{const t=v.value.indexOf(e);t>-1&&(v.value.splice(t,1),y.value=v.value)},E=e=>{p({type:"error",message:"上传失败"}),g.value=!1,m("on-error",e)};return(t,n)=>{const r=i("el-button"),o=i("el-upload");return u(),a("div",null,[s(o,{"file-list":y.value,"onUpdate:fileList":n[0]||(n[0]=e=>y.value=e),multiple:"",action:"".concat(f(d)(),"/fileUploadAndDownload/upload?noSave=1"),"on-error":E,"on-success":b,"on-remove":w,"show-file-list":!0,limit:e.limit,accept:e.accept,class:"upload-btn",headers:{"x-token":f(h)}},{default:l(()=>[s(r,{type:"primary"},{default:l(()=>[...n[1]||(n[1]=[c(" 上传文件 ",-1)])]),_:1})]),_:1},8,["file-list","action","limit","accept","headers"])])}}});var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T(e){var t={exports:{}};return e(t,t.exports),t.exports}var _,P,j=function(e){return e&&e.Math==Math&&e},N=j("object"==typeof globalThis&&globalThis)||j("object"==typeof window&&window)||j("object"==typeof self&&self)||j("object"==typeof F&&F)||function(){return this}()||Function("return this")(),I=Function.prototype,L=I.apply,R=I.bind,M=I.call,z="object"==typeof Reflect&&Reflect.apply||(R?M.bind(L):function(){return M.apply(L,arguments)}),H=Function.prototype,V=H.bind,$=H.call,U=V&&V.bind($),W=V?function(e){return e&&U($,e)}:function(e){return e&&function(){return $.apply(e,arguments)}},G=function(e){return"function"==typeof e},q=function(e){try{return!!e()}catch(t){return!0}},K=!q(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Y=Function.prototype.call,X=Y.bind?Y.bind(Y):function(){return Y.apply(Y,arguments)},Z={}.propertyIsEnumerable,J=Object.getOwnPropertyDescriptor,Q=J&&!Z.call({1:2},1)?function(e){var t=J(this,e);return!!t&&t.enumerable}:Z,ee={f:Q},te=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ne=W({}.toString),re=W("".slice),oe=function(e){return re(ne(e),8,-1)},ie=N.Object,ae=W("".split),ue=q(function(){return!ie("z").propertyIsEnumerable(0)})?function(e){return"String"==oe(e)?ae(e,""):ie(e)}:ie,se=N.TypeError,le=function(e){if(null==e)throw se("Can't call method on "+e);return e},ce=function(e){return ue(le(e))},fe=function(e){return"object"==typeof e?null!==e:G(e)},de={},pe=function(e){return G(e)?e:void 0},he=function(e,t){return arguments.length<2?pe(de[e])||pe(N[e]):de[e]&&de[e][t]||N[e]&&N[e][t]},ge=W({}.isPrototypeOf),ve=he("navigator","userAgent")||"",ye=N.process,me=N.Deno,be=ye&&ye.versions||me&&me.version,we=be&&be.v8;we&&(P=(_=we.split("."))[0]>0&&_[0]<4?1:+(_[0]+_[1])),!P&&ve&&(!(_=ve.match(/Edge\/(\d+)/))||_[1]>=74)&&(_=ve.match(/Chrome\/(\d+)/))&&(P=+_[1]);var Ee,De,Ce=P,xe=!!Object.getOwnPropertySymbols&&!q(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ce&&Ce<41}),Se=xe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ae=N.Object,Oe=Se?function(e){return"symbol"==typeof e}:function(e){var t=he("Symbol");return G(t)&&ge(t.prototype,Ae(e))},ke=N.String,Be=function(e){try{return ke(e)}catch(t){return"Object"}},Fe=N.TypeError,Te=function(e){if(G(e))return e;throw Fe(Be(e)+" is not a function")},_e=function(e,t){var n=e[t];return null==n?void 0:Te(n)},Pe=N.TypeError,je=Object.defineProperty,Ne=N["__core-js_shared__"]||function(e,t){try{je(N,e,{value:t,configurable:!0,writable:!0})}catch(cP){N[e]=t}return t}("__core-js_shared__",{}),Ie=T(function(e){(e.exports=function(e,t){return Ne[e]||(Ne[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Le=N.Object,Re=function(e){return Le(le(e))},Me=W({}.hasOwnProperty),ze=Object.hasOwn||function(e,t){return Me(Re(e),t)},He=0,Ve=Math.random(),$e=W(1..toString),Ue=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$e(++He+Ve,36)},We=Ie("wks"),Ge=N.Symbol,qe=Ge&&Ge.for,Ke=Se?Ge:Ge&&Ge.withoutSetter||Ue,Ye=function(e){if(!ze(We,e)||!xe&&"string"!=typeof We[e]){var t="Symbol."+e;xe&&ze(Ge,e)?We[e]=Ge[e]:We[e]=Se&&qe?qe(t):Ke(t)}return We[e]},Xe=N.TypeError,Ze=Ye("toPrimitive"),Je=function(e){var t=function(e,t){if(!fe(e)||Oe(e))return e;var n,r=_e(e,Ze);if(r){if(n=X(r,e,t),!fe(n)||Oe(n))return n;throw Xe("Can't convert object to primitive value")}return function(e){var t,n;if(G(t=e.toString)&&!fe(n=X(t,e)))return n;if(G(t=e.valueOf)&&!fe(n=X(t,e)))return n;throw Pe("Can't convert object to primitive value")}(e)}(e,"string");return Oe(t)?t:t+""},Qe=N.document,et=fe(Qe)&&fe(Qe.createElement),tt=function(e){return et?Qe.createElement(e):{}},nt=!K&&!q(function(){return 7!=Object.defineProperty(tt("div"),"a",{get:function(){return 7}}).a}),rt=Object.getOwnPropertyDescriptor,ot=K?rt:function(e,t){if(e=ce(e),t=Je(t),nt)try{return rt(e,t)}catch(n){}if(ze(e,t))return te(!X(ee.f,e,t),e[t])},it={f:ot},at=/#|\.prototype\./,ut=function(e,t){var n=lt[st(e)];return n==ft||n!=ct&&(G(t)?q(t):!!t)},st=ut.normalize=function(e){return String(e).replace(at,".").toLowerCase()},lt=ut.data={},ct=ut.NATIVE="N",ft=ut.POLYFILL="P",dt=ut,pt=W(W.bind),ht=function(e,t){return Te(e),void 0===t?e:pt?pt(e,t):function(){return e.apply(t,arguments)}},gt=N.String,vt=N.TypeError,yt=function(e){if(fe(e))return e;throw vt(gt(e)+" is not an object")},mt=N.TypeError,bt=Object.defineProperty,wt=K?bt:function(e,t,n){if(yt(e),t=Je(t),yt(n),nt)try{return bt(e,t,n)}catch(r){}if("get"in n||"set"in n)throw mt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Et={f:wt},Dt=K?function(e,t,n){return Et.f(e,t,te(1,n))}:function(e,t,n){return e[t]=n,e},Ct=it.f,xt=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return z(e,this,arguments)};return t.prototype=e.prototype,t},St=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?N:d?N[c]:(N[c]||{}).prototype,g=f?de:de[c]||Dt(de,c,{})[c],v=g.prototype;for(o in t)n=!dt(f?o:c+(d?".":"#")+o,e.forced)&&h&&ze(h,o),a=g[o],n&&(u=e.noTargetGet?(l=Ct(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?ht(i,N):e.wrap&&n?xt(i):p&&G(i)?W(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Dt(s,"sham",!0),Dt(g,o,s),p&&(ze(de,r=c+"Prototype")||Dt(de,r,{}),Dt(de[r],o,i),e.real&&v&&!v[o]&&Dt(v,o,i)))},At=Ie("keys"),Ot=function(e){return At[e]||(At[e]=Ue(e))},kt=!q(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Bt=Ot("IE_PROTO"),Ft=N.Object,Tt=Ft.prototype,_t=kt?Ft.getPrototypeOf:function(e){var t=Re(e);if(ze(t,Bt))return t[Bt];var n=t.constructor;return G(n)&&t instanceof n?n.prototype:t instanceof Ft?Tt:null},Pt=N.String,jt=N.TypeError,Nt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=W(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return yt(n),function(e){if("object"==typeof e||G(e))return e;throw jt("Can't set "+Pt(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),It=Math.ceil,Lt=Math.floor,Rt=function(e){var t=+e;return t!=t||0===t?0:(t>0?Lt:It)(t)},Mt=Math.max,zt=Math.min,Ht=function(e,t){var n=Rt(e);return n<0?Mt(n+t,0):zt(n,t)},Vt=Math.min,$t=function(e){return(t=e.length)>0?Vt(Rt(t),9007199254740991):0;var t},Ut={indexOf:(De=!1,function(e,t,n){var r,o=ce(e),i=$t(o),a=Ht(n,i);if(De&&t!=t){for(;i>a;)if((r=o[a++])!=r)return!0}else for(;i>a;a++)if((De||a in o)&&o[a]===t)return De||a||0;return!De&&-1})},Wt={},Gt=Ut.indexOf,qt=W([].push),Kt=function(e,t){var n,r=ce(e),o=0,i=[];for(n in r)!ze(Wt,n)&&ze(r,n)&&qt(i,n);for(;t.length>o;)ze(r,n=t[o++])&&(~Gt(i,n)||qt(i,n));return i},Yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Yt.concat("length","prototype"),Zt=Object.getOwnPropertyNames||function(e){return Kt(e,Xt)},Jt={f:Zt},Qt={f:Object.getOwnPropertySymbols},en=W([].concat),tn=he("Reflect","ownKeys")||function(e){var t=Jt.f(yt(e)),n=Qt.f;return n?en(t,n(e)):t},nn=Object.keys||function(e){return Kt(e,Yt)},rn=K?Object.defineProperties:function(e,t){yt(e);for(var n,r=ce(t),o=nn(t),i=o.length,a=0;i>a;)Et.f(e,n=o[a++],r[n]);return e},on=he("document","documentElement"),an=Ot("IE_PROTO"),un=function(){},sn=function(e){return"<script>"+e+"<\/script>"},ln=function(e){e.write(sn("")),e.close();var t=e.parentWindow.Object;return e=null,t},cn=function(){try{Ee=new ActiveXObject("htmlfile")}catch(r){}var e,t;cn="undefined"!=typeof document?document.domain&&Ee?ln(Ee):((t=tt("iframe")).style.display="none",on.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(sn("document.F=Object")),e.close(),e.F):ln(Ee);for(var n=Yt.length;n--;)delete cn.prototype[Yt[n]];return cn()};Wt[an]=!0;var fn=Object.create||function(e,t){var n;return null!==e?(un.prototype=yt(e),n=new un,un.prototype=null,n[an]=e):n=cn(),void 0===t?n:rn(n,t)},dn=function(e,t,n){var r=Je(t);r in e?Et.f(e,r,te(0,n)):e[r]=n},pn=N.Array,hn=Math.max,gn=function(e,t,n){for(var r=$t(e),o=Ht(t,r),i=Ht(r,r),a=pn(hn(i-o,0)),u=0;o<i;o++,u++)dn(a,u,e[o]);return a.length=u,a},vn=W("".replace),yn=W("".split),mn=W([].join),bn=String(Error("zxcasd").stack),wn=/\n\s*at [^:]*:[^\n]*/,En=wn.test(bn),Dn=/@[^\n]*\n/.test(bn)&&!/zxcasd/.test(bn),Cn={},xn=Ye("iterator"),Sn=Array.prototype,An={};An[Ye("toStringTag")]="z";var On="[object z]"===String(An),kn=Ye("toStringTag"),Bn=N.Object,Fn="Arguments"==oe(function(){return arguments}()),Tn=On?oe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Bn(e),kn))?n:Fn?oe(t):"Object"==(r=oe(t))&&G(t.callee)?"Arguments":r},_n=Ye("iterator"),Pn=function(e){if(null!=e)return _e(e,_n)||_e(e,"@@iterator")||Cn[Tn(e)]},jn=N.TypeError,Nn=function(e,t,n){var r,o;yt(e);try{if(!(r=_e(e,"return"))){if("throw"===t)throw n;return n}r=X(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return yt(r),n},In=N.TypeError,Ln=function(e,t){this.stopped=e,this.result=t},Rn=Ln.prototype,Mn=N.String,zn=function(e){if("Symbol"===Tn(e))throw TypeError("Cannot convert a Symbol value to a string");return Mn(e)},Hn=!q(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",te(1,7)),7!==e.stack)}),Vn=Ye("toStringTag"),$n=N.Error,Un=[].push,Wn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ge(Gn,this);Nt?n=Nt(new $n(void 0),o?_t(this):Gn):(n=o?this:fn(Gn),Dt(n,Vn,"Error")),Dt(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:zn(e)}(t,"")),Hn&&Dt(n,"stack",function(e,t){if("string"!=typeof e)return e;if(En)for(;t--;)e=vn(e,wn,"");else if(Dn)return mn(gn(yn(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){fe(t)&&"cause"in t&&Dt(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=ht(t,f),v=function(e){return r&&Nn(r,"normal",e),new Ln(!0,e)},y=function(e){return d?(yt(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Pn(e)))throw In(Be(e)+" is not iterable");if(void 0!==(c=o)&&(Cn.Array===c||Sn[xn]===c)){for(i=0,a=$t(e);a>i;i++)if((u=y(e[i]))&&ge(Rn,u))return u;return new Ln(!1)}r=function(e,t){var n=arguments.length<2?Pn(e):t;if(Te(n))return yt(X(n,e));throw jn(Be(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=X(s,r)).done;){try{u=y(l.value)}catch(c){Nn(r,"throw",c)}if("object"==typeof u&&u&&ge(Rn,u))return u}new Ln(!1)}(e,Un,{that:i}),Dt(n,"errors",i),n};Nt?Nt(Wn,$n):function(e,t){for(var n=tn(t),r=Et.f,o=it.f,i=0;i<n.length;i++){var a=n[i];ze(e,a)||r(e,a,o(t,a))}}(Wn,$n);var Gn=Wn.prototype=fn($n.prototype,{constructor:te(1,Wn),message:te(1,""),name:te(1,"AggregateError")});St({global:!0},{AggregateError:Wn});var qn=W(Function.toString);G(Ne.inspectSource)||(Ne.inspectSource=function(e){return qn(e)});var Kn,Yn,Xn,Zn=Ne.inspectSource,Jn=N.WeakMap,Qn=G(Jn)&&/native code/.test(Zn(Jn)),er=N.TypeError,tr=N.WeakMap;if(Qn||Ne.state){var nr=Ne.state||(Ne.state=new tr),rr=W(nr.get),or=W(nr.has),ir=W(nr.set);Kn=function(e,t){if(or(nr,e))throw new er("Object already initialized");return t.facade=e,ir(nr,e,t),t},Yn=function(e){return rr(nr,e)||{}},Xn=function(e){return or(nr,e)}}else{var ar=Ot("state");Wt[ar]=!0,Kn=function(e,t){if(ze(e,ar))throw new er("Object already initialized");return t.facade=e,Dt(e,ar,t),t},Yn=function(e){return ze(e,ar)?e[ar]:{}},Xn=function(e){return ze(e,ar)}}var ur,sr,lr,cr={set:Kn,get:Yn,has:Xn,enforce:function(e){return Xn(e)?Yn(e):Kn(e,{})},getterFor:function(e){return function(t){var n;if(!fe(t)||(n=Yn(t)).type!==e)throw er("Incompatible receiver, "+e+" required");return n}}},fr=Function.prototype,dr=K&&Object.getOwnPropertyDescriptor,pr=ze(fr,"name"),hr={PROPER:pr&&"something"===function(){}.name,CONFIGURABLE:pr&&(!K||K&&dr(fr,"name").configurable)},gr=function(e,t,n,r){Dt(e,t,n)},vr=Ye("iterator"),yr=!1;[].keys&&("next"in(lr=[].keys())?(sr=_t(_t(lr)))!==Object.prototype&&(ur=sr):yr=!0);var mr=null==ur||q(function(){var e={};return ur[vr].call(e)!==e});ur=mr?{}:fn(ur),G(ur[vr])||gr(ur,vr,function(){return this});var br={IteratorPrototype:ur,BUGGY_SAFARI_ITERATORS:yr},wr=On?{}.toString:function(){return"[object "+Tn(this)+"]"},Er=Et.f,Dr=Ye("toStringTag"),Cr=function(e,t,n,r){if(e){var o=n?e:e.prototype;ze(o,Dr)||Er(o,Dr,{configurable:!0,value:t}),r&&!On&&Dt(o,"toString",wr)}},xr=br.IteratorPrototype,Sr=function(){return this},Ar=hr.PROPER,Or=br.BUGGY_SAFARI_ITERATORS,kr=Ye("iterator"),Br=function(){return this},Fr=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=fn(xr,{next:te(1,s)}),Cr(u,l,!1,!0),Cn[l]=Sr;var c,f,d=function(e){if(e===o&&y)return y;if(!Or&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[kr]||g["@@iterator"]||o&&g[o],y=!Or&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=_t(m.call(new e)))!==Object.prototype&&c.next&&(Cr(c,p,!0,!0),Cn[p]=Br),Ar&&"values"==o&&v&&"values"!==v.name&&(h=!0,y=function(){return X(v,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||St({target:t,proto:!0,forced:Or||h},f)),Cn[t]=y,f},Tr=cr.set,_r=cr.getterFor("Array Iterator");Fr(Array,"Array",function(e,t){Tr(this,{type:"Array Iterator",target:ce(e),index:0,kind:t})},function(){var e=_r(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Cn.Arguments=Cn.Array;var Pr=W("".charAt),jr=W("".charCodeAt),Nr=W("".slice),Ir=function(e){return function(t,n){var r,o,i=zn(le(t)),a=Rt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=jr(i,a))<55296||r>56319||a+1===u||(o=jr(i,a+1))<56320||o>57343?e?Pr(i,a):r:e?Nr(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Lr=cr.set,Rr=cr.getterFor("String Iterator");Fr(String,"String",function(e){Lr(this,{type:"String Iterator",string:zn(e),index:0})},function(){var e,t=Rr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ir(n,r),t.index+=e.length,{value:e,done:!1})});var Mr=de.AggregateError,zr=Ye("toStringTag");for(var Hr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Vr=N[Hr],$r=Vr&&Vr.prototype;$r&&Tn($r)!==zr&&Dt($r,zr,Hr),Cn[Hr]=Cn.Array}var Ur,Wr,Gr=Mr,qr=function(e){return e&&e.Math==Math&&e},Kr=qr("object"==typeof globalThis&&globalThis)||qr("object"==typeof window&&window)||qr("object"==typeof self&&self)||qr("object"==typeof F&&F)||function(){return this}()||Function("return this")(),Yr=function(e){try{return!!e()}catch(t){return!0}},Xr=!Yr(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Zr=Function.prototype.call,Jr=Zr.bind?Zr.bind(Zr):function(){return Zr.apply(Zr,arguments)},Qr={}.propertyIsEnumerable,eo=Object.getOwnPropertyDescriptor,to=eo&&!Qr.call({1:2},1)?function(e){var t=eo(this,e);return!!t&&t.enumerable}:Qr,no={f:to},ro=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},oo=Function.prototype,io=oo.bind,ao=oo.call,uo=io&&io.bind(ao),so=io?function(e){return e&&uo(ao,e)}:function(e){return e&&function(){return ao.apply(e,arguments)}},lo=so({}.toString),co=so("".slice),fo=function(e){return co(lo(e),8,-1)},po=Kr.Object,ho=so("".split),go=Yr(function(){return!po("z").propertyIsEnumerable(0)})?function(e){return"String"==fo(e)?ho(e,""):po(e)}:po,vo=Kr.TypeError,yo=function(e){if(null==e)throw vo("Can't call method on "+e);return e},mo=function(e){return go(yo(e))},bo=function(e){return"function"==typeof e},wo=function(e){return"object"==typeof e?null!==e:bo(e)},Eo=function(e,t){return arguments.length<2?function(e){return bo(e)?e:void 0}(Kr[e]):Kr[e]&&Kr[e][t]},Do=so({}.isPrototypeOf),Co=Eo("navigator","userAgent")||"",xo=Kr.process,So=Kr.Deno,Ao=xo&&xo.versions||So&&So.version,Oo=Ao&&Ao.v8;Oo&&(Wr=(Ur=Oo.split("."))[0]>0&&Ur[0]<4?1:+(Ur[0]+Ur[1])),!Wr&&Co&&(!(Ur=Co.match(/Edge\/(\d+)/))||Ur[1]>=74)&&(Ur=Co.match(/Chrome\/(\d+)/))&&(Wr=+Ur[1]);var ko=Wr,Bo=!!Object.getOwnPropertySymbols&&!Yr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ko&&ko<41}),Fo=Bo&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,To=Kr.Object,_o=Fo?function(e){return"symbol"==typeof e}:function(e){var t=Eo("Symbol");return bo(t)&&Do(t.prototype,To(e))},Po=Kr.String,jo=function(e){try{return Po(e)}catch(t){return"Object"}},No=Kr.TypeError,Io=function(e){if(bo(e))return e;throw No(jo(e)+" is not a function")},Lo=function(e,t){var n=e[t];return null==n?void 0:Io(n)},Ro=Kr.TypeError,Mo=Object.defineProperty,zo=function(e,t){try{Mo(Kr,e,{value:t,configurable:!0,writable:!0})}catch(cP){Kr[e]=t}return t},Ho=Kr["__core-js_shared__"]||zo("__core-js_shared__",{}),Vo=T(function(e){(e.exports=function(e,t){return Ho[e]||(Ho[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),$o=Kr.Object,Uo=function(e){return $o(yo(e))},Wo=so({}.hasOwnProperty),Go=Object.hasOwn||function(e,t){return Wo(Uo(e),t)},qo=0,Ko=Math.random(),Yo=so(1..toString),Xo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Yo(++qo+Ko,36)},Zo=Vo("wks"),Jo=Kr.Symbol,Qo=Jo&&Jo.for,ei=Fo?Jo:Jo&&Jo.withoutSetter||Xo,ti=function(e){if(!Go(Zo,e)||!Bo&&"string"!=typeof Zo[e]){var t="Symbol."+e;Bo&&Go(Jo,e)?Zo[e]=Jo[e]:Zo[e]=Fo&&Qo?Qo(t):ei(t)}return Zo[e]},ni=Kr.TypeError,ri=ti("toPrimitive"),oi=function(e){var t=function(e,t){if(!wo(e)||_o(e))return e;var n,r=Lo(e,ri);if(r){if(n=Jr(r,e,t),!wo(n)||_o(n))return n;throw ni("Can't convert object to primitive value")}return function(e){var t,n;if(bo(t=e.toString)&&!wo(n=Jr(t,e)))return n;if(bo(t=e.valueOf)&&!wo(n=Jr(t,e)))return n;throw Ro("Can't convert object to primitive value")}(e)}(e,"string");return _o(t)?t:t+""},ii=Kr.document,ai=wo(ii)&&wo(ii.createElement),ui=function(e){return ai?ii.createElement(e):{}},si=!Xr&&!Yr(function(){return 7!=Object.defineProperty(ui("div"),"a",{get:function(){return 7}}).a}),li=Object.getOwnPropertyDescriptor,ci=Xr?li:function(e,t){if(e=mo(e),t=oi(t),si)try{return li(e,t)}catch(n){}if(Go(e,t))return ro(!Jr(no.f,e,t),e[t])},fi={f:ci},di=Kr.String,pi=Kr.TypeError,hi=function(e){if(wo(e))return e;throw pi(di(e)+" is not an object")},gi=Kr.TypeError,vi=Object.defineProperty,yi=Xr?vi:function(e,t,n){if(hi(e),t=oi(t),hi(n),si)try{return vi(e,t,n)}catch(r){}if("get"in n||"set"in n)throw gi("Accessors not supported");return"value"in n&&(e[t]=n.value),e},mi={f:yi},bi=Xr?function(e,t,n){return mi.f(e,t,ro(1,n))}:function(e,t,n){return e[t]=n,e},wi=so(Function.toString);bo(Ho.inspectSource)||(Ho.inspectSource=function(e){return wi(e)});var Ei,Di,Ci,xi=Ho.inspectSource,Si=Kr.WeakMap,Ai=bo(Si)&&/native code/.test(xi(Si)),Oi=Vo("keys"),ki=function(e){return Oi[e]||(Oi[e]=Xo(e))},Bi={},Fi=Kr.TypeError,Ti=Kr.WeakMap;if(Ai||Ho.state){var _i=Ho.state||(Ho.state=new Ti),Pi=so(_i.get),ji=so(_i.has),Ni=so(_i.set);Ei=function(e,t){if(ji(_i,e))throw new Fi("Object already initialized");return t.facade=e,Ni(_i,e,t),t},Di=function(e){return Pi(_i,e)||{}},Ci=function(e){return ji(_i,e)}}else{var Ii=ki("state");Bi[Ii]=!0,Ei=function(e,t){if(Go(e,Ii))throw new Fi("Object already initialized");return t.facade=e,bi(e,Ii,t),t},Di=function(e){return Go(e,Ii)?e[Ii]:{}},Ci=function(e){return Go(e,Ii)}}var Li={set:Ei,get:Di,has:Ci,enforce:function(e){return Ci(e)?Di(e):Ei(e,{})},getterFor:function(e){return function(t){var n;if(!wo(t)||(n=Di(t)).type!==e)throw Fi("Incompatible receiver, "+e+" required");return n}}},Ri=Function.prototype,Mi=Xr&&Object.getOwnPropertyDescriptor,zi=Go(Ri,"name"),Hi={PROPER:zi&&"something"===function(){}.name,CONFIGURABLE:zi&&(!Xr||Xr&&Mi(Ri,"name").configurable)},Vi=T(function(e){var t=Hi.CONFIGURABLE,n=Li.get,r=Li.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;bo(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Go(i,"name")||t&&i.name!==f)&&bi(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Kr?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:bi(e,n,i)):l?e[n]=i:zo(n,i)})(Function.prototype,"toString",function(){return bo(this)&&n(this).source||xi(this)})}),$i=Math.ceil,Ui=Math.floor,Wi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ui:$i)(t)},Gi=Math.max,qi=Math.min,Ki=function(e,t){var n=Wi(e);return n<0?Gi(n+t,0):qi(n,t)},Yi=Math.min,Xi=function(e){return e>0?Yi(Wi(e),9007199254740991):0},Zi=function(e){return Xi(e.length)},Ji=function(e){return function(t,n,r){var o,i=mo(t),a=Zi(i),u=Ki(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Qi=so([].push),ea=function(e,t){var n,r=mo(e),o=0,i=[];for(n in r)!Go(Bi,n)&&Go(r,n)&&Qi(i,n);for(;t.length>o;)Go(r,n=t[o++])&&(~Ji(i,n)||Qi(i,n));return i},ta=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],na=ta.concat("length","prototype"),ra=Object.getOwnPropertyNames||function(e){return ea(e,na)},oa={f:ra},ia={f:Object.getOwnPropertySymbols},aa=so([].concat),ua=Eo("Reflect","ownKeys")||function(e){var t=oa.f(hi(e)),n=ia.f;return n?aa(t,n(e)):t},sa=function(e,t){for(var n=ua(t),r=mi.f,o=fi.f,i=0;i<n.length;i++){var a=n[i];Go(e,a)||r(e,a,o(t,a))}},la=/#|\.prototype\./,ca=function(e,t){var n=da[fa(e)];return n==ha||n!=pa&&(bo(t)?Yr(t):!!t)},fa=ca.normalize=function(e){return String(e).replace(la,".").toLowerCase()},da=ca.data={},pa=ca.NATIVE="N",ha=ca.POLYFILL="P",ga=ca,va=fi.f,ya=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Kr:l?Kr[u]||zo(u,{}):(Kr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=va(n,r))&&a.value:n[r],!ga(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;sa(i,o)}(e.sham||o&&o.sham)&&bi(i,"sham",!0),Vi(n,r,i,e)}},ma={};ma[ti("toStringTag")]="z";var ba,wa="[object z]"===String(ma),Ea=ti("toStringTag"),Da=Kr.Object,Ca="Arguments"==fo(function(){return arguments}()),xa=wa?fo:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Da(e),Ea))?n:Ca?fo(t):"Object"==(r=fo(t))&&bo(t.callee)?"Arguments":r},Sa=Kr.String,Aa=function(e){if("Symbol"===xa(e))throw TypeError("Cannot convert a Symbol value to a string");return Sa(e)},Oa=function(){var e=hi(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ka=Kr.RegExp,Ba=Yr(function(){var e=ka("a","y");return e.lastIndex=2,null!=e.exec("abcd")});Ba||Yr(function(){return!ka("a","y").sticky});var Fa=Ba||Yr(function(){var e=ka("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),Ta={BROKEN_CARET:Fa},_a=Object.keys||function(e){return ea(e,ta)},Pa=Xr?Object.defineProperties:function(e,t){hi(e);for(var n,r=mo(t),o=_a(t),i=o.length,a=0;i>a;)mi.f(e,n=o[a++],r[n]);return e},ja=Eo("document","documentElement"),Na=ki("IE_PROTO"),Ia=function(){},La=function(e){return"<script>"+e+"<\/script>"},Ra=function(e){e.write(La("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ma=function(){try{ba=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ma="undefined"!=typeof document?document.domain&&ba?Ra(ba):((t=ui("iframe")).style.display="none",ja.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(La("document.F=Object")),e.close(),e.F):Ra(ba);for(var n=ta.length;n--;)delete Ma.prototype[ta[n]];return Ma()};Bi[Na]=!0;var za,Ha,Va=Object.create||function(e,t){var n;return null!==e?(Ia.prototype=hi(e),n=new Ia,Ia.prototype=null,n[Na]=e):n=Ma(),void 0===t?n:Pa(n,t)},$a=Kr.RegExp,Ua=Yr(function(){var e=$a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),Wa=Kr.RegExp,Ga=Yr(function(){var e=Wa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),qa=Li.get,Ka=Vo("native-string-replace",String.prototype.replace),Ya=RegExp.prototype.exec,Xa=Ya,Za=so("".charAt),Ja=so("".indexOf),Qa=so("".replace),eu=so("".slice),tu=(Ha=/b*/g,Jr(Ya,za=/a/,"a"),Jr(Ya,Ha,"a"),0!==za.lastIndex||0!==Ha.lastIndex),nu=Ta.BROKEN_CARET,ru=void 0!==/()??/.exec("")[1];(tu||ru||nu||Ua||Ga)&&(Xa=function(e){var t,n,r,o,i,a,u,s=this,l=qa(s),c=Aa(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Jr(Xa,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=nu&&s.sticky,h=Jr(Oa,s),g=s.source,v=0,y=c;if(p&&(h=Qa(h,"y",""),-1===Ja(h,"g")&&(h+="g"),y=eu(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Za(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),ru&&(n=new RegExp("^"+g+"$(?!\\s)",h)),tu&&(r=s.lastIndex),o=Jr(Ya,p?n:s,y),p?o?(o.input=eu(o.input,v),o[0]=eu(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:tu&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ru&&o&&o.length>1&&Jr(Ka,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=Va(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ou=Xa;ya({target:"RegExp",proto:!0,forced:/./.exec!==ou},{exec:ou});ti("species");var iu=RegExp.prototype,au=so("".charAt),uu=so("".charCodeAt),su=so("".slice),lu={charAt:function(e){return function(t,n){var r,o,i=Aa(yo(t)),a=Wi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=uu(i,a))<55296||r>56319||a+1===u||(o=uu(i,a+1))<56320||o>57343?e?au(i,a):r:e?su(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},cu=lu.charAt,fu=function(e,t,n){return t+(n?cu(e,t).length:1)},du=Kr.TypeError,pu=function(e,t){var n=e.exec;if(bo(n)){var r=Jr(n,e,t);return null!==r&&hi(r),r}if("RegExp"===fo(e))return Jr(ou,e,t);throw du("RegExp#exec called on incompatible receiver")};!function(e){var t=ti(e),n=!Yr(function(){var n={};return n[t]=function(){return 7},7!=""[e](n)}),r=n&&!Yr(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},n[t](""),!e});if(!n||!r){var o=so(/./[t]),i=function(e,t,n){return[function(t){var n=yo(this),r=null==t?void 0:Lo(t,e);return r?Jr(r,t,n):new RegExp(t)[e](Aa(n))},function(e){var r=hi(this),o=Aa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return pu(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=pu(r,o));){var c=Aa(u[0]);s[l]=c,""===c&&(r.lastIndex=fu(o,Xi(r.lastIndex),a)),l++}return 0===l?null:s}]}(t,""[e],function(e,t,r,i,a){var u=so(e),s=t.exec;return s===ou||s===iu.exec?n&&!a?{done:!0,value:o(t,r,i)}:{done:!0,value:u(r,t,i)}:{done:!1}});Vi(String.prototype,e,i[0]),Vi(iu,t,i[1])}}("match"),ya({global:!0},{globalThis:Kr});var hu=!Yr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),gu=ki("IE_PROTO"),vu=Kr.Object,yu=vu.prototype,mu=hu?vu.getPrototypeOf:function(e){var t=Uo(e);if(Go(t,gu))return t[gu];var n=t.constructor;return bo(n)&&t instanceof n?n.prototype:t instanceof vu?yu:null},bu=Kr.String,wu=Kr.TypeError,Eu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=so(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return hi(n),function(e){if("object"==typeof e||bo(e))return e;throw wu("Can't set "+bu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Du=Kr.Array,Cu=Math.max,xu=so("".replace),Su=so("".split),Au=so([].join),Ou=String(Error("zxcasd").stack),ku=/\n\s*at [^:]*:[^\n]*/,Bu=ku.test(Ou),Fu=/@[^\n]*\n/.test(Ou)&&!/zxcasd/.test(Ou),Tu=so(so.bind),_u=function(e,t){return Io(e),void 0===t?e:Tu?Tu(e,t):function(){return e.apply(t,arguments)}},Pu={},ju=ti("iterator"),Nu=Array.prototype,Iu=ti("iterator"),Lu=function(e){if(null!=e)return Lo(e,Iu)||Lo(e,"@@iterator")||Pu[xa(e)]},Ru=Kr.TypeError,Mu=function(e,t,n){var r,o;hi(e);try{if(!(r=Lo(e,"return"))){if("throw"===t)throw n;return n}r=Jr(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return hi(r),n},zu=Kr.TypeError,Hu=function(e,t){this.stopped=e,this.result=t},Vu=Hu.prototype,$u=!Yr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ro(1,7)),7!==e.stack)}),Uu=ti("toStringTag"),Wu=Kr.Error,Gu=[].push,qu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Do(Ku,this);Eu?n=Eu(new Wu(void 0),o?mu(this):Ku):(n=o?this:Va(Ku),bi(n,Uu,"Error")),bi(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Aa(e)}(t,"")),$u&&bi(n,"stack",function(e,t){if("string"!=typeof e)return e;if(Bu)for(;t--;)e=xu(e,ku,"");else if(Fu)return Au(function(e,t){for(var n,r,o,i,a=Zi(e),u=Ki(t,a),s=Ki(a,a),l=Du(Cu(s-u,0)),c=0;u<s;u++,c++)n=l,r=c,o=e[u],(i=oi(r))in n?mi.f(n,i,ro(0,o)):n[i]=o;return l.length=c,l}(Su(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){wo(t)&&"cause"in t&&bi(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=_u(t,f),v=function(e){return r&&Mu(r,"normal",e),new Hu(!0,e)},y=function(e){return d?(hi(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Lu(e)))throw zu(jo(e)+" is not iterable");if(void 0!==(c=o)&&(Pu.Array===c||Nu[ju]===c)){for(i=0,a=Zi(e);a>i;i++)if((u=y(e[i]))&&Do(Vu,u))return u;return new Hu(!1)}r=function(e,t){var n=arguments.length<2?Lu(e):t;if(Io(n))return hi(Jr(n,e));throw Ru(jo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Jr(s,r)).done;){try{u=y(l.value)}catch(c){Mu(r,"throw",c)}if("object"==typeof u&&u&&Do(Vu,u))return u}new Hu(!1)}(e,Gu,{that:i}),bi(n,"errors",i),n};Eu?Eu(qu,Wu):sa(qu,Wu);var Ku=qu.prototype=Va(Wu.prototype,{constructor:ro(1,qu),message:ro(1,""),name:ro(1,"AggregateError")});ya({global:!0},{AggregateError:qu});var Yu=ti("unscopables"),Xu=Array.prototype;null==Xu[Yu]&&mi.f(Xu,Yu,{configurable:!0,value:Va(null)});var Zu,Ju,Qu,es=function(e){Xu[Yu][e]=!0},ts=ti("iterator"),ns=!1;[].keys&&("next"in(Qu=[].keys())?(Ju=mu(mu(Qu)))!==Object.prototype&&(Zu=Ju):ns=!0);var rs=null==Zu||Yr(function(){var e={};return Zu[ts].call(e)!==e});rs&&(Zu={}),bo(Zu[ts])||Vi(Zu,ts,function(){return this});var os={IteratorPrototype:Zu,BUGGY_SAFARI_ITERATORS:ns},is=mi.f,as=ti("toStringTag"),us=function(e,t,n){e&&!Go(e=n?e:e.prototype,as)&&is(e,as,{configurable:!0,value:t})},ss=os.IteratorPrototype,ls=function(){return this},cs=Hi.PROPER,fs=Hi.CONFIGURABLE,ds=os.IteratorPrototype,ps=os.BUGGY_SAFARI_ITERATORS,hs=ti("iterator"),gs=function(){return this},vs=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Va(ss,{next:ro(1,s)}),us(u,l,!1),Pu[l]=ls;var c,f,d=function(e){if(e===o&&y)return y;if(!ps&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[hs]||g["@@iterator"]||o&&g[o],y=!ps&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=mu(m.call(new e)))!==Object.prototype&&c.next&&(mu(c)!==ds&&(Eu?Eu(c,ds):bo(c[hs])||Vi(c,hs,gs)),us(c,p,!0)),cs&&"values"==o&&v&&"values"!==v.name&&(fs?bi(g,"name","values"):(h=!0,y=function(){return Jr(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||ya({target:t,proto:!0,forced:ps||h},f)),g[hs]!==y&&Vi(g,hs,y,{name:o}),Pu[t]=y,f},ys=Li.set,ms=Li.getterFor("Array Iterator"),bs=vs(Array,"Array",function(e,t){ys(this,{type:"Array Iterator",target:mo(e),index:0,kind:t})},function(){var e=ms(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Pu.Arguments=Pu.Array,es("keys"),es("values"),es("entries");var ws=lu.charAt,Es=Li.set,Ds=Li.getterFor("String Iterator");vs(String,"String",function(e){Es(this,{type:"String Iterator",string:Aa(e),index:0})},function(){var e,t=Ds(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ws(n,r),t.index+=e.length,{value:e,done:!1})});var Cs,xs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ss=ui("span").classList,As=Ss&&Ss.constructor&&Ss.constructor.prototype,Os=As===Object.prototype?void 0:As,ks=ti("iterator"),Bs=ti("toStringTag"),Fs=bs.values,Ts=function(e,t){if(e){if(e[ks]!==Fs)try{bi(e,ks,Fs)}catch(r){e[ks]=Fs}if(e[Bs]||bi(e,Bs,t),xs[t])for(var n in bs)if(e[n]!==bs[n])try{bi(e,n,bs[n])}catch(r){e[n]=bs[n]}}};for(var _s in xs)Ts(Kr[_s]&&Kr[_s].prototype,_s);function Ps(){"undefined"==typeof globalThis&&(window.globalThis=window)}function js(){void 0===Gr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Ts(Os,"DOMTokenList"),"undefined"==typeof global?(window,Ps(),js()):global&&(null===(Cs=global.navigator)||void 0===Cs?void 0:Cs.userAgent.match("QQBrowser"))&&(Ps(),js());var Ns=Array.isArray||function(e){return"Array"==oe(e)},Is=function(){},Ls=[],Rs=he("Reflect","construct"),Ms=/^\s*(?:class|function)\b/,zs=W(Ms.exec),Hs=!Ms.exec(Is),Vs=function(e){if(!G(e))return!1;try{return Rs(Is,Ls,e),!0}catch(t){return!1}},$s=!Rs||q(function(){var e;return Vs(Vs.call)||!Vs(Object)||!Vs(function(){e=!0})||e})?function(e){if(!G(e))return!1;switch(Tn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Hs||!!zs(Ms,Zn(e))}:Vs,Us=Ye("species"),Ws=N.Array,Gs=function(e,t){return new(Ns(n=e)&&(r=n.constructor,($s(r)&&(r===Ws||Ns(r.prototype))||fe(r)&&null===(r=r[Us]))&&(r=void 0)),void 0===r?Ws:r)(0===t?0:t);var n,r},qs=Ye("species"),Ks=Ye("isConcatSpreadable"),Ys=N.TypeError,Xs=Ce>=51||!q(function(){var e=[];return e[Ks]=!1,e.concat()[0]!==e}),Zs=Ce>=51||!q(function(){var e=[];return(e.constructor={})[qs]=function(){return{foo:1}},1!==e.concat(Boolean).foo}),Js=function(e){if(!fe(e))return!1;var t=e[Ks];return void 0!==t?!!t:Ns(e)};St({target:"Array",proto:!0,forced:!Xs||!Zs},{concat:function(e){var t,n,r,o,i,a=Re(this),u=Gs(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Js(i=-1===t?a:arguments[t])){if(s+(o=$t(i))>9007199254740991)throw Ys("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&dn(u,s,i[n])}else{if(s>=9007199254740991)throw Ys("Maximum allowed index exceeded");dn(u,s++,i)}return u.length=s,u}});var Qs=Jt.f,el="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tl={f:function(e){return el&&"Window"==oe(e)?function(e){try{return Qs(e)}catch(t){return gn(el)}}(e):Qs(ce(e))}},nl=W([].slice),rl={f:Ye},ol=Et.f,il=function(e){var t=de.Symbol||(de.Symbol={});ze(t,e)||ol(t,e,{value:rl.f(e)})},al=W([].push),ul=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Re(s),g=ue(h),v=ht(l,c),y=$t(g),m=0,b=f||Gs,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:al(w,d)}else switch(e){case 4:return!1;case 7:al(w,d)}return i?-1:r||o?o:w}}(0),sl=Ot("hidden"),ll=Ye("toPrimitive"),cl=cr.set,fl=cr.getterFor("Symbol"),dl=Object.prototype,pl=N.Symbol,hl=pl&&pl.prototype,gl=N.TypeError,vl=N.QObject,yl=he("JSON","stringify"),ml=it.f,bl=Et.f,wl=tl.f,El=ee.f,Dl=W([].push),Cl=Ie("symbols"),xl=Ie("op-symbols"),Sl=Ie("string-to-symbol-registry"),Al=Ie("symbol-to-string-registry"),Ol=Ie("wks"),kl=!vl||!vl.prototype||!vl.prototype.findChild,Bl=K&&q(function(){return 7!=fn(bl({},"a",{get:function(){return bl(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=ml(dl,t);r&&delete dl[t],bl(e,t,n),r&&e!==dl&&bl(dl,t,r)}:bl,Fl=function(e,t){var n=Cl[e]=fn(hl);return cl(n,{type:"Symbol",tag:e,description:t}),K||(n.description=t),n},Tl=function(e,t,n){e===dl&&Tl(xl,t,n),yt(e);var r=Je(t);return yt(n),ze(Cl,r)?(n.enumerable?(ze(e,sl)&&e[sl][r]&&(e[sl][r]=!1),n=fn(n,{enumerable:te(0,!1)})):(ze(e,sl)||bl(e,sl,te(1,{})),e[sl][r]=!0),Bl(e,r,n)):bl(e,r,n)},_l=function(e,t){yt(e);var n=ce(t),r=nn(n).concat(Il(n));return ul(r,function(t){K&&!X(Pl,n,t)||Tl(e,t,n[t])}),e},Pl=function(e){var t=Je(e),n=X(El,this,t);return!(this===dl&&ze(Cl,t)&&!ze(xl,t))&&(!(n||!ze(this,t)||!ze(Cl,t)||ze(this,sl)&&this[sl][t])||n)},jl=function(e,t){var n=ce(e),r=Je(t);if(n!==dl||!ze(Cl,r)||ze(xl,r)){var o=ml(n,r);return!o||!ze(Cl,r)||ze(n,sl)&&n[sl][r]||(o.enumerable=!0),o}},Nl=function(e){var t=wl(ce(e)),n=[];return ul(t,function(e){ze(Cl,e)||ze(Wt,e)||Dl(n,e)}),n},Il=function(e){var t=e===dl,n=wl(t?xl:ce(e)),r=[];return ul(n,function(e){!ze(Cl,e)||t&&!ze(dl,e)||Dl(r,Cl[e])}),r};if(xe||(hl=(pl=function(){if(ge(hl,this))throw gl("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?zn(arguments[0]):void 0,t=Ue(e),n=function(e){this===dl&&X(n,xl,e),ze(this,sl)&&ze(this[sl],t)&&(this[sl][t]=!1),Bl(this,t,te(1,e))};return K&&kl&&Bl(dl,t,{configurable:!0,set:n}),Fl(t,e)}).prototype,gr(hl,"toString",function(){return fl(this).tag}),gr(pl,"withoutSetter",function(e){return Fl(Ue(e),e)}),ee.f=Pl,Et.f=Tl,it.f=jl,Jt.f=tl.f=Nl,Qt.f=Il,rl.f=function(e){return Fl(Ye(e),e)},K&&bl(hl,"description",{configurable:!0,get:function(){return fl(this).description}})),St({global:!0,wrap:!0,forced:!xe,sham:!xe},{Symbol:pl}),ul(nn(Ol),function(e){il(e)}),St({target:"Symbol",stat:!0,forced:!xe},{for:function(e){var t=zn(e);if(ze(Sl,t))return Sl[t];var n=pl(t);return Sl[t]=n,Al[n]=t,n},keyFor:function(e){if(!Oe(e))throw gl(e+" is not a symbol");if(ze(Al,e))return Al[e]},useSetter:function(){kl=!0},useSimple:function(){kl=!1}}),St({target:"Object",stat:!0,forced:!xe,sham:!K},{create:function(e,t){return void 0===t?fn(e):_l(fn(e),t)},defineProperty:Tl,defineProperties:_l,getOwnPropertyDescriptor:jl}),St({target:"Object",stat:!0,forced:!xe},{getOwnPropertyNames:Nl,getOwnPropertySymbols:Il}),St({target:"Object",stat:!0,forced:q(function(){Qt.f(1)})},{getOwnPropertySymbols:function(e){return Qt.f(Re(e))}}),yl){var Ll=!xe||q(function(){var e=pl();return"[null]"!=yl([e])||"{}"!=yl({a:e})||"{}"!=yl(Object(e))});St({target:"JSON",stat:!0,forced:Ll},{stringify:function(e,t,n){var r=nl(arguments),o=t;if((fe(t)||void 0!==e)&&!Oe(e))return Ns(t)||(t=function(e,t){if(G(o)&&(t=X(o,this,e,t)),!Oe(t))return t}),r[1]=t,z(yl,null,r)}})}if(!hl[ll]){var Rl=hl.valueOf;gr(hl,ll,function(e){return X(Rl,this)})}Cr(pl,"Symbol"),Wt[sl]=!0,il("asyncIterator"),il("hasInstance"),il("isConcatSpreadable"),il("iterator"),il("match"),il("matchAll"),il("replace"),il("search"),il("species"),il("split"),il("toPrimitive"),il("toStringTag"),il("unscopables"),Cr(N.JSON,"JSON",!0);var Ml=de.Symbol;il("asyncDispose"),il("dispose"),il("matcher"),il("metadata"),il("observable"),il("patternMatch"),il("replaceAll");var zl=Ml,Hl=rl.f("iterator"),Vl=T(function(e){function t(n){return"function"==typeof zl&&"symbol"==typeof Hl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof zl&&e.constructor===zl&&e!==zl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),$l=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Vl),Ul=fi.f,Wl=Yr(function(){Ul(1)});if(ya({target:"Object",stat:!0,forced:!Xr||Wl,sham:!Xr},{getOwnPropertyDescriptor:function(e,t){return Ul(mo(e),t)}}),"object"===("undefined"==typeof global?"undefined":$l(global))){var Gl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Gl.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function ql(e){return"[object Object]"===Object.prototype.toString.call(e)}function Kl(e){var t,n;return!1!==ql(e)&&(void 0===(t=e.constructor)||!1!==ql(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Yl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xl(e){return!!e&&!!e[jc]}function Zl(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Nc}(e)||Array.isArray(e)||!!e[Pc]||!!e.constructor[Pc]||nc(e)||rc(e))}function Jl(e,t,n){void 0===n&&(n=!1),0===Ql(e)?(n?Object.keys:Ic)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function Ql(e){var t=e[jc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:nc(e)?2:rc(e)?3:0}function ec(e,t){return 2===Ql(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tc(e,t,n){var r=Ql(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function nc(e){return Bc&&e instanceof Map}function rc(e){return Fc&&e instanceof Set}function oc(e){return e.o||e.t}function ic(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Lc(e);delete t[jc];for(var n=Ic(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function ac(e,t){return void 0===t&&(t=!1),sc(e)||Xl(e)||!Zl(e)||(Ql(e)>1&&(e.set=e.add=e.clear=e.delete=uc),Object.freeze(e),t&&Jl(e,function(e,t){return ac(t,!0)},!0)),e}function uc(){Yl(2)}function sc(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function lc(e){var t=Rc[e];return t||Yl(18,e),t}function cc(){return Oc}function fc(e,t){t&&(lc("Patches"),e.u=[],e.s=[],e.v=t)}function dc(e){pc(e),e.p.forEach(gc),e.p=null}function pc(e){e===Oc&&(Oc=e.l)}function hc(e){return Oc={p:[],l:Oc,h:e,m:!0,_:0}}function gc(e){var t=e[jc];0===t.i||1===t.i?t.j():t.O=!0}function vc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||lc("ES5").S(t,e,r),r?(n[jc].P&&(dc(t),Yl(4)),Zl(e)&&(e=yc(t,e),t.l||bc(t,e)),t.u&&lc("Patches").M(n[jc],e,t.u,t.s)):e=yc(t,n,[]),dc(t),t.u&&t.v(t.u,t.s),e!==_c?e:void 0}function yc(e,t,n){if(sc(t))return t;var r=t[jc];if(!r)return Jl(t,function(o,i){return mc(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return bc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=ic(r.k):r.o;Jl(3===r.i?new Set(o):o,function(t,i){return mc(e,r,o,t,i,n)}),bc(e,o,!1),n&&e.u&&lc("Patches").R(r,n,e.u,e.s)}return r.o}function mc(e,t,n,r,o,i){if(Xl(o)){var a=yc(e,o,i&&t&&3!==t.i&&!ec(t.D,r)?i.concat(r):void 0);if(tc(n,r,a),!Xl(a))return;e.m=!1}if(Zl(o)&&!sc(o)){if(!e.h.F&&e._<1)return;yc(e,o),t&&t.A.l||bc(e,o)}}function bc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&ac(t,n)}function wc(e,t){var n=e[jc];return(n?oc(n):e)[t]}function Ec(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Dc(e){e.P||(e.P=!0,e.l&&Dc(e.l))}function Cc(e){e.o||(e.o=ic(e.t))}function xc(e,t,n){var r=nc(t)?lc("MapSet").N(t,n):rc(t)?lc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:cc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Mc;n&&(o=[r],i=zc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):lc("ES5").J(t,n);return(n?n.A:cc()).p.push(r),r}function Sc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ic(e)}var Ac,Oc,kc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Bc="undefined"!=typeof Map,Fc="undefined"!=typeof Set,Tc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,_c=kc?Symbol.for("immer-nothing"):((Ac={})["immer-nothing"]=!0,Ac),Pc=kc?Symbol.for("immer-draftable"):"__$immer_draftable",jc=kc?Symbol.for("immer-state"):"__$immer_state",Nc=""+Object.prototype.constructor,Ic="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Lc=Object.getOwnPropertyDescriptors||function(e){var t={};return Ic(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Rc={},Mc={get:function(e,t){if(t===jc)return e;var n=oc(e);if(!ec(n,t))return function(e,t,n){var r,o=Ec(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Zl(r)?r:r===wc(e.t,t)?(Cc(e),e.o[t]=xc(e.A.h,r,e)):r},has:function(e,t){return t in oc(e)},ownKeys:function(e){return Reflect.ownKeys(oc(e))},set:function(e,t,n){var r,o,i=Ec(oc(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=wc(oc(e),t),u=null==a?void 0:a[jc];if(u&&u.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(((r=n)===(o=a)?0!==r||1/r==1/o:r!=r&&o!=o)&&(void 0!==n||ec(e.t,t)))return!0;Cc(e),Dc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==wc(e.t,t)||t in e.t?(e.D[t]=!1,Cc(e),Dc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=oc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Yl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Yl(12)}},zc={};Jl(Mc,function(e,t){zc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),zc.deleteProperty=function(e,t){return Mc.deleteProperty.call(this,e[0],t)},zc.set=function(e,t,n){return Mc.set.call(this,e[0],t,n,e[0])};var Hc=function(){function e(e){var t=this;this.g=Tc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&Yl(6),void 0!==r&&"function"!=typeof r&&Yl(7),Zl(e)){var u=hc(t),s=xc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?dc(u):pc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return fc(u,r),vc(e,u)},function(e){throw dc(u),e}):(fc(u,r),vc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===_c)return;return void 0===a&&(a=e),t.F&&ac(a,!0),a}Yl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})}:[t.produce(e,n,function(e,t){r=e,o=t}),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Zl(e)||Yl(8),Xl(e)&&(e=function(e){return Xl(e)||Yl(22,e),function e(t){if(!Zl(t))return t;var n,r=t[jc],o=Ql(t);if(r){if(!r.P&&(r.i<4||!lc("ES5").K(r)))return r.t;r.I=!0,n=Sc(t,o),r.I=!1}else n=Sc(t,o);return Jl(n,function(t,o){var i,a;r&&(a=t,(2===Ql(i=r.t)?i.get(a):i[a])===o)||tc(n,t,e(o))}),3===o?new Set(n):n}(e)}(e));var t=hc(this),n=xc(this,e,void 0);return n[jc].C=!0,pc(t),n},t.finishDraft=function(e,t){var n=(e&&e[jc]).A;return fc(n,t),vc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Tc&&Yl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=lc("Patches").$;return Xl(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}(),Vc=new Hc,$c=Vc.produce;Vc.produceWithPatches.bind(Vc),Vc.setAutoFreeze.bind(Vc),Vc.setUseProxies.bind(Vc),Vc.applyPatches.bind(Vc);var Uc=Vc.createDraft.bind(Vc),Wc=Vc.finishDraft.bind(Vc);function Gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qc=new WeakMap,Kc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Zc=new WeakMap,Jc=new WeakMap;function Qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ef(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tf=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return qf.levels(t);case"insert_node":var{node:n,path:r}=e;return[...qf.levels(r),...sd.isText(n)?[]:Array.from($f.nodes(n),e=>{var[,t]=e;return r.concat(t)})];case"merge_node":var{path:o}=e;return[...qf.ancestors(o),qf.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(qf.equals(i,a))return[];var u=[],s=[];for(var l of qf.ancestors(i)){var c=qf.transform(l,e);u.push(c)}for(var f of qf.ancestors(a)){var d=qf.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...qf.ancestors(v)];case"split_node":var{path:y}=e;return[...qf.levels(y),qf.next(y)];default:return[]}};function nf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var rf,of=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?ff(e):e,o=rf.None,i=rf.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Cf(s,l);if([o,i]=n?[i,c]:[c,o],xf(o,rf.ZWJ)&&xf(i,rf.ExtPict)&&!kf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(xf(o,rf.RI)&&xf(i,rf.RI)&&!(u=null!==u?!u:!!n||Ff(e.substring(0,e.length-a))))break;if(o!==rf.None&&i!==rf.None&&Af(o,i))break;a+=s.length}return a||1},af=/\s/,uf=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,sf=/['\u2018\u2019]/,lf=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},cf=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(af.test(t))return!1;if(sf.test(t)){var o=of(n,r),[i,a]=lf(n,o,r);if(e(i,a,r))return!0}return!uf.test(t)},ff=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(pf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(df(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},df=e=>e>=55296&&e<=56319,pf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(rf||(rf={}));var hf=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,gf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,vf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,yf=/^[\u1100-\u115F\uA960-\uA97C]$/,mf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,bf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,wf=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Ef=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Df=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Cf=(e,t)=>{var n=rf.Any;return-1!==e.search(hf)&&(n|=rf.Extend),8205===t&&(n|=rf.ZWJ),t>=127462&&t<=127487&&(n|=rf.RI),-1!==e.search(gf)&&(n|=rf.Prepend),-1!==e.search(vf)&&(n|=rf.SpacingMark),-1!==e.search(yf)&&(n|=rf.L),-1!==e.search(mf)&&(n|=rf.V),-1!==e.search(bf)&&(n|=rf.T),-1!==e.search(wf)&&(n|=rf.LV),-1!==e.search(Ef)&&(n|=rf.LVT),-1!==e.search(Df)&&(n|=rf.ExtPict),n};function xf(e,t){return 0!=(e&t)}var Sf=[[rf.L,rf.L|rf.V|rf.LV|rf.LVT],[rf.LV|rf.V,rf.V|rf.T],[rf.LVT|rf.T,rf.T],[rf.Any,rf.Extend|rf.ZWJ],[rf.Any,rf.SpacingMark],[rf.Prepend,rf.Any],[rf.ZWJ,rf.ExtPict],[rf.RI,rf.RI]];function Af(e,t){return-1===Sf.findIndex(n=>xf(e,n[0])&&xf(t,n[1]))}var Of=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,kf=e=>-1!==e.search(Of),Bf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ff=e=>{var t=e.match(Bf);return null!==t&&t[0].length/2%2==1},Tf=e=>Kl(e)&&$f.isNodeList(e.children)&&!Rf.isEditor(e),_f={isAncestor:e=>Kl(e)&&$f.isNodeList(e.children),isElement:Tf,isElementList:e=>Array.isArray(e)&&e.every(e=>_f.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Tf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Pf=["text"],jf=["text"];function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Lf=new WeakMap,Rf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Rf.path(e,o),u="lowest"===r;for(var[s,l]of Rf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!sd.isText(s)&&!qf.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Rf.point(e,t,{edge:"end"}),focus:Rf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Rf.positions(e,If(If({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Rf.start(e,[]),focus:Rf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Rf.positions(e,If(If({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Rf.start(e,t),Rf.end(e,t)],end:(e,t)=>Rf.point(e,t,{edge:"end"}),first(e,t){var n=Rf.path(e,t,{edge:"start"});return Rf.node(e,n)},fragment(e,t){var n=Rf.range(e,t);return $f.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(t=>Rf.isBlock(e,t)),hasInlines:(e,t)=>t.children.some(t=>sd.isText(t)||Rf.isInline(e,t)),hasTexts:(e,t)=>t.children.every(e=>sd.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>_f.isElement(t)&&!e.isInline(t),isEditor(e){if(!Kl(e))return!1;var t=Lf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Kl(e.marks))&&(null===e.selection||td.isRange(e.selection))&&$f.isNodeList(e.children)&&Gf.isOperationList(e.operations);return Lf.set(e,n),n},isEnd(e,t,n){var r=Rf.end(e,n);return Zf.equals(t,r)},isEdge:(e,t,n)=>Rf.isStart(e,t,n)||Rf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&sd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>_f.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Yc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Rf.start(e,n);return Zf.equals(t,r)},isVoid:(e,t)=>_f.isElement(t)&&e.isVoid(t),last(e,t){var n=Rf.path(e,t,{edge:"end"});return Rf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Rf.path(e,t,n);return[$f.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Rf.path(e,n);for(var[s,l]of $f.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Rf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(td.isExpanded(n)){var[r]=Rf.nodes(e,{match:sd.isText});if(r){var[o]=r;return nf(o,Pf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Rf.leaf(e,a);if(0===i.offset){var s=Rf.previous(e,{at:a,match:sd.isText}),l=Rf.above(e,{match:t=>Rf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;qf.isAncestor(d,f)&&(u=c)}}return nf(u,jf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Rf.after(e,i,{voids:r});if(a){var[,u]=Rf.last(e,[]),s=[a.path,u];if(qf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(qf.isPath(i)){var[l]=Rf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Rf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Rf.path(e,t,n);return[$f.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(Mf.isSpan(n))s=n[0],l=n[1];else{var c=Rf.path(e,n,{edge:"start"}),f=Rf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=$f.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Rf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===qf.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&sd.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>qc.get(e)||[];if(Rf.isNormalizing(e)){if(n){var o=Array.from($f.nodes(e),e=>{var[,t]=e;return t});qc.set(e,o)}0!==r(e).length&&Rf.withoutNormalizing(e,()=>{for(var t of r(e))if($f.has(e,t)){var n=Rf.node(e,t),[o,i]=n;_f.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if($f.has(e,s)){var l=Rf.node(e,s);e.normalizeNode(l)}u++}})}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Rf.path(e,t,n),o=qf.parent(r);return Rf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(qf.isPath(t))if("start"===o){var[,i]=$f.first(e,t);t=i}else if("end"===o){var[,a]=$f.last(e,t);t=a}return td.isRange(t)&&(t="start"===o?td.start(t):"end"===o?td.end(t):qf.common(t.anchor.path,t.focus.path)),Zf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>$f.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Rf.pathRefs(e).delete(o),o.current=null,t}};return Rf.pathRefs(e).add(o),o},pathRefs(e){var t=Xc.get(e);return t||(t=new Set,Xc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(qf.isPath(t)){var o;if("end"===r){var[,i]=$f.last(e,t);o=i}else{var[,a]=$f.first(e,t);o=a}var u=$f.get(e,o);if(!sd.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(td.isRange(t)){var[s,l]=td.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Rf.pointRefs(e).delete(o),o.current=null,t}};return Rf.pointRefs(e).add(o),o},pointRefs(e){var t=Zc.get(e);return t||(t=new Set,Zc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Rf.range(e,n),[u,s]=td.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of Rf.nodes(e,{at:n,reverse:o,voids:i})){if(_f.isElement(g)){if(!i&&e.isVoid(g)){yield Rf.start(e,v);continue}if(e.isInline(g))continue;if(Rf.hasInlines(e,g)){var y=qf.isAncestor(v,s.path)?s:Rf.end(e,v),m=qf.isAncestor(v,u.path)?u:Rf.start(e,v);f=Rf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(sd.isText(g)){var b=qf.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=lf(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?of(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=of(e,t),[i,a]=lf(e,o,t);if(cf(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Rf.before(e,i,{voids:r});if(a){var[,u]=Rf.first(e,[]),s=[a.path,u];if(qf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(qf.isPath(i)){var[l]=Rf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Rf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>td.isRange(t)&&!n?t:{anchor:Rf.start(e,t),focus:Rf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Rf.rangeRefs(e).delete(o),o.current=null,t}};return Rf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Jc.get(e);return t||(t=new Set,Jc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Yc.set(e,t)},start:(e,t)=>Rf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Rf.range(e,t),[i,a]=td.edges(o),u="";for(var[s,l]of Rf.nodes(e,{at:o,match:sd.isText,voids:r})){var c=s.text;qf.equals(l,a.path)&&(c=c.slice(0,a.offset)),qf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=td.edges(t);if(0!==o.offset||0!==i.offset||td.isCollapsed(t))return t;var a=Rf.above(e,{at:i,match:t=>Rf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Rf.start(e,[]),focus:i},l=!0;for(var[c,f]of Rf.nodes(e,{at:s,match:sd.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||qf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Rf.above(e,If(If({},t),{},{match:t=>Rf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Rf.isNormalizing(e);Rf.setNormalizing(e,!1);try{t()}finally{Rf.setNormalizing(e,n)}Rf.normalize(e)}},Mf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(qf.isPath)},zf=["children"],Hf=["text"],Vf=new WeakMap,$f={ancestor(e,t){var n=$f.get(e,t);if(sd.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of qf.ancestors(t,n)){var o=[$f.ancestor(e,r),r];yield o}},child(e,t){if(sd.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=$f.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=$f.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=qf.common(t,n);return[$f.get(e,r),r]},descendant(e,t){var n=$f.get(e,t);if(Rf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of $f.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of $f.nodes(e,t))_f.isElement(n)&&(yield[n,r])},extractProps:e=>_f.isAncestor(e)?nf(e,zf):nf(e,Hf),first(e,t){for(var n=t.slice(),r=$f.get(e,n);r&&!sd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(sd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=$c({children:e.children},e=>{var[n,r]=td.edges(t),o=$f.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!td.includes(t,n)}});for(var[,i]of o){if(!td.includes(t,i)){var a=$f.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(qf.equals(i,r.path)){var s=$f.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(qf.equals(i,n.path)){var l=$f.leaf(e,i);l.text=l.text.slice(n.offset)}}Rf.isEditor(e)&&(e.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(sd.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(sd.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>sd.isText(e)||_f.isElement(e)||Rf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Vf.get(e);if(void 0!==t)return t;var n=e.every(e=>$f.isNode(e));return Vf.set(e,n),n},last(e,t){for(var n=t.slice(),r=$f.get(e,n);r&&!sd.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=$f.get(e,t);if(!sd.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of qf.levels(t,n)){var o=$f.get(e,r);yield[o,r]}},matches:(e,t)=>_f.isElement(e)&&_f.isElementProps(t)&&_f.matches(e,t)||sd.isText(e)&&sd.isTextProps(t)&&sd.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?qf.isBefore(u,i):qf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||sd.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=qf.next(u);if($f.has(e,l)){u=l,s=$f.get(e,u);continue}}r&&0!==u[u.length-1]?(u=qf.previous(u),s=$f.get(e,u)):(u=qf.parent(u),s=$f.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;qf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=$f.get(e,u)}},parent(e,t){var n=qf.parent(t),r=$f.get(e,n);if(sd.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>sd.isText(e)?e.text:e.children.map($f.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of $f.nodes(e,t))sd.isText(n)&&(yield[n,r])}};function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Gf={isNodeOperation:e=>Gf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Kl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return qf.isPath(e.path)&&$f.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&qf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&qf.isPath(e.path)&&Kl(e.properties);case"move_node":return qf.isPath(e.path)&&qf.isPath(e.newPath);case"set_node":return qf.isPath(e.path)&&Kl(e.properties)&&Kl(e.newProperties);case"set_selection":return null===e.properties&&td.isRange(e.newProperties)||null===e.newProperties&&td.isRange(e.properties)||Kl(e.properties)&&Kl(e.newProperties);case"split_node":return qf.isPath(e.path)&&"number"==typeof e.position&&Kl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>Gf.isOperation(e)),isSelectionOperation:e=>Gf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Gf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Wf(Wf({},e),{},{type:"remove_node"});case"insert_text":return Wf(Wf({},e),{},{type:"remove_text"});case"merge_node":return Wf(Wf({},e),{},{type:"split_node",path:qf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(qf.equals(t,n))return e;if(qf.isSibling(n,t))return Wf(Wf({},e),{},{path:t,newPath:n});var r=qf.transform(n,e),o=qf.transform(qf.next(n),e);return Wf(Wf({},e),{},{path:r,newPath:o});case"remove_node":return Wf(Wf({},e),{},{type:"insert_node"});case"remove_text":return Wf(Wf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Wf(Wf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Wf(Wf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Wf(Wf({},e),{},{type:"merge_node",path:qf.next(e.path)})}}},qf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=qf.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return qf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return qf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return qf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===qf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===qf.compare(e,t),isBefore:(e,t)=>-1===qf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===qf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===qf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===qf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===qf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&qf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!qf.isAncestor(t,e)&&!qf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $c(e,r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(qf.equals(i,r)||qf.endsBefore(i,r)||qf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(qf.equals(a,r)||qf.isAncestor(a,r))return null;qf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;qf.equals(u,r)||qf.endsBefore(u,r)?r[u.length-1]-=1:qf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(qf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else qf.endsBefore(l,r)?r[l.length-1]+=1:qf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(qf.equals(f,d))return;if(qf.isAncestor(f,r)||qf.equals(f,r)){var p=d.slice();return qf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}qf.isSibling(f,d)&&(qf.isAncestor(d,r)||qf.equals(d,r))?qf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:qf.endsBefore(d,r)||qf.equals(d,r)||qf.isAncestor(d,r)?(qf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):qf.endsBefore(f,r)&&(qf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},Kf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=qf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zf={compare(e,t){var n=qf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Zf.compare(e,t),isBefore:(e,t)=>-1===Zf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&qf.equals(e.path,t.path),isPoint:e=>Kl(e)&&"number"==typeof e.offset&&qf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $c(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=qf.transform(o,t,n);break;case"insert_text":qf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":qf.equals(t.path,o)&&(e.offset+=t.position),e.path=qf.transform(o,t,n);break;case"remove_text":qf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(qf.equals(t.path,o)||qf.isAncestor(t.path,o))return null;e.path=qf.transform(o,t,n);break;case"split_node":if(qf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=qf.transform(o,t,Xf(Xf({},n),{},{affinity:"forward"})))}else e.path=qf.transform(o,t,n)}})}},Jf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Zf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Qf=["anchor","focus"];function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var td={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return td.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=td.edges(e);return t},equals:(e,t)=>Zf.equals(e.anchor,t.anchor)&&Zf.equals(e.focus,t.focus),includes(e,t){if(td.isRange(t)){if(td.includes(e,t.anchor)||td.includes(e,t.focus))return!0;var[n,r]=td.edges(e),[o,i]=td.edges(t);return Zf.isBefore(n,o)&&Zf.isAfter(r,i)}var[a,u]=td.edges(e),s=!1,l=!1;return Zf.isPoint(t)?(s=Zf.compare(t,a)>=0,l=Zf.compare(t,u)<=0):(s=qf.compare(t,a.path)>=0,l=qf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=nf(e,Qf),[r,o]=td.edges(e),[i,a]=td.edges(t),u=Zf.isBefore(r,i)?i:r,s=Zf.isBefore(o,a)?o:a;return Zf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Zf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Zf.equals(t,n)},isExpanded:e=>!td.isCollapsed(e),isForward:e=>!td.isBackward(e),isRange:e=>Kl(e)&&Zf.isPoint(e.anchor)&&Zf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=td.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $c(e,e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=td.isCollapsed(e);td.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?td.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Zf.transform(e.anchor,t,{affinity:r}),s=Zf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s})}},nd={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=td.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},rd=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Kl(r)&&Kl(o)){if(!rd(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},od=["text"],id=["anchor","focus"];function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sd={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return nf(e,od)}return rd(r?o(e):e,r?o(t):t)},isText:e=>Kl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>sd.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[ud({},e)];for(var r of t){var o=nf(r,id),[i,a]=td.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=ud(ud({},d),{},{text:d.text.slice(g)}),d=ud(ud({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=ud(ud({},d),{},{text:d.text.slice(0,v)}),d=ud(ud({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ld(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fd={transform(e,t){e.children=Uc(e.children);var n=e.selection&&Uc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=$f.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of td.points(t))t[s]=Zf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=$f.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of td.points(t))t[v]=Zf.transform(g,n);break;case"merge_node":var{path:y}=n,m=$f.get(e,y),b=qf.previous(y),w=$f.get(e,b),E=$f.parent(e,y),D=y[y.length-1];if(sd.isText(m)&&sd.isText(w))w.text+=m.text;else{if(sd.isText(m)||sd.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(D,1),t)for(var[C,x]of td.points(t))t[x]=Zf.transform(C,n);break;case"move_node":var{path:S,newPath:A}=n;if(qf.isAncestor(S,A))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(A,"] because the destination is inside itself."));var O=$f.get(e,S),k=$f.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var F=qf.transform(S,n),T=$f.get(e,qf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of td.points(t))t[j]=Zf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if($f.parent(e,N).children.splice(I,1),t)for(var[L,R]of td.points(t)){var M=Zf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,H=void 0;for(var[V,$]of $f.texts(e)){if(-1!==qf.compare($,N)){H=[V,$];break}z=[V,$]}var U=!1;z&&H&&(U=qf.equals(H[1],N)?!qf.hasPrevious(H[1]):qf.common(z[1],N).length<qf.common(H[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=$f.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of td.points(t))t[J]=Zf.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=$f.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!td.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=cd({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=$f.get(e,le),he=$f.parent(e,le),ge=le[le.length-1];if(sd.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=cd(cd({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=cd(cd({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of td.points(t))t[Ee]=Zf.transform(we,n)}return t})(e,n,t)}finally{e.children=Wc(e.children),e.selection=n?Xl(n)?Wc(n):n:null}}},dd=["text"],pd=["children"];function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var vd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if($f.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Rf.end(e,[]):[0],s=!0),null==s&&(s=!1),td.isRange(a))if(r||(a=Rf.unhangRange(e,a)),td.isCollapsed(a))a=a.anchor;else{var[,c]=td.edges(a),f=Rf.pointRef(e,c);Ad.delete(e,{at:a}),a=f.unref()}if(Zf.isPoint(a)){null==u&&(u=sd.isText(l)?e=>sd.isText(e):e.isInline(l)?t=>sd.isText(t)||Rf.isInline(e,t):t=>Rf.isBlock(e,t));var[d]=Rf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Rf.pathRef(e,p),g=Rf.isEnd(e,a,p);Ad.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?qf.next(v):v}var y=qf.parent(a),m=a[a.length-1];if(o||!Rf.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=qf.next(a)}if(a=qf.previous(a),s){var E=Rf.end(e,a);E&&Ad.select(e,E)}}}})},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rf.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=qf.isPath(n)?bd(e,n):t=>Rf.isBlock(e,t)),n){var a=Rf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,t=>{var[,n]=t;return Rf.pathRef(e,n)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Rf.node(e,qf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=qf.next(d);Ad.moveNodes(e,{at:l,to:g,voids:o}),Ad.removeNodes(e,{at:d,voids:o})}else if(0===p)Ad.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=qf.next(d);Ad.moveNodes(e,{at:l,to:v,voids:o})}else{var y=qf.next(l),m=qf.next(d);Ad.splitNodes(e,{at:y,voids:o}),Ad.moveNodes(e,{at:l,to:m,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rf.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(qf.isPath(r)){var[u]=Rf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Rf.isBlock(e,t);if(!o&&td.isRange(r)&&(r=Rf.unhangRange(e,r)),td.isRange(r))if(td.isCollapsed(r))r=r.anchor;else{var[,s]=td.edges(r),l=Rf.pointRef(e,s);Ad.delete(e,{at:r}),r=l.unref(),null==t.at&&Ad.select(e,r)}var[c]=Rf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Rf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=qf.next(g),b=qf.common(p,g),w=qf.isSibling(p,g),E=Array.from(Rf.levels(e,{at:p}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),D=Rf.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&yd(e,t)}),C=D&&Rf.pathRef(e,D[1]);if(sd.isText(d)&&sd.isText(h)){var x=nf(d,dd);y=h.text.length,v=x}else{if(!_f.isElement(d)||!_f.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));x=nf(d,pd),y=h.children.length,v=x}w||Ad.moveNodes(e,{at:p,to:m,voids:i}),C&&Ad.removeNodes(e,{at:C.current,voids:i}),_f.isElement(h)&&Rf.isEmpty(e,h)||sd.isText(h)&&""===h.text&&0!==g[g.length-1]?Ad.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}})},moveNodes(e,t){Rf.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=qf.isPath(r)?bd(e,r):t=>Rf.isBlock(e,t));var u=Rf.pathRef(e,n),s=Rf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,t=>{var[,n]=t;return Rf.pathRef(e,n)});for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&qf.isSibling(d,f)&&qf.isAfter(d,f)&&(u.current=qf.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rf.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=qf.isPath(i)?bd(e,i):t=>Rf.isBlock(e,t)),!n&&td.isRange(i)&&(i=Rf.unhangRange(e,i));var u=Rf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,t=>{var[,n]=t;return Rf.pathRef(e,n)});for(var l of s){var c=l.unref();if(c){var[f]=Rf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rf.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=qf.isPath(o)?bd(e,o):t=>Rf.isBlock(e,t)),!i&&td.isRange(o)&&(o=Rf.unhangRange(e,o)),u&&td.isRange(o)){if(td.isCollapsed(o)&&Rf.leaf(e,o.anchor)[0].text.length>0)return;var l=Rf.rangeRef(e,o,{affinity:"inward"}),[c,f]=td.edges(o),d="lowest"===a?"lowest":"highest",p=Rf.isEnd(e,f,f.path);Ad.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Rf.isStart(e,c,c.path);Ad.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Ad.select(e,o)}for(var[g,v]of Rf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rf.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Rf.isBlock(e,t)),td.isRange(i)&&(i=md(e,i)),qf.isPath(i)){var s=i,l=Rf.point(e,s),[c]=Rf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Rf.pointRef(e,i,{affinity:"backward"}),[d]=Rf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Rf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(_f.isElement(h)&&e.isInline(h)){var v=Rf.after(e,g);if(!v){var y=qf.next(g);Ad.insertNodes(e,{text:""},{at:y,voids:r}),v=Rf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=Rf.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),D=0===a?i.offset:i.path[b]+0;for(var[C,x]of Rf.levels(e,{at:E,reverse:!0,voids:r})){var S=!1;if(x.length<w.length||0===x.length||!r&&Rf.isVoid(e,C))break;var A=f.current,O=Rf.isEnd(e,A,x);if(u||!f||!Rf.isEdge(e,A,x)){S=!0;var k=$f.extractProps(C);e.apply({type:"split_node",path:x,position:D,properties:k})}D=x[x.length-1]+(S||O?1:0)}if(null==t.at){var B=m.current||Rf.end(e,[]);Ad.select(e,B)}f.unref(),m.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Ad.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rf.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=qf.isPath(i)?bd(e,i):t=>Rf.isBlock(e,t)),qf.isPath(i)&&(i=Rf.range(e,i));var u=td.isRange(i)?Rf.rangeRef(e,i):null,s=Rf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,t=>{var[,n]=t;return Rf.pathRef(e,n)}).reverse(),c=function(t){var n=t.unref(),[i]=Rf.node(e,n),a=Rf.range(e,n);r&&u&&(a=td.intersection(u.current,a)),Ad.liftNodes(e,{at:a,match:e=>_f.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rf.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=qf.isPath(u)?bd(e,u):e.isInline(t)?t=>Rf.isInline(e,t)||sd.isText(t):t=>Rf.isBlock(e,t)),o&&td.isRange(u)){var[s,l]=td.edges(u),c=Rf.rangeRef(e,u,{affinity:"inward"});Ad.splitNodes(e,{at:l,match:a,voids:i}),Ad.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Ad.select(e,u)}var f=Array.from(Rf.nodes(e,{at:u,match:e.isInline(t)?t=>Rf.isBlock(e,t):e=>Rf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=td.isRange(u)?td.intersection(u,Rf.range(e,d)):u;if(p){var h=Array.from(Rf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=qf.equals(o,a)?qf.parent(o):qf.common(o,a),s=Rf.range(e,o,a),l=Rf.node(e,u),[c]=l,f=u.length+1,d=qf.next(a.slice(0,f)),p=gd(gd({},t),{},{children:[]});Ad.insertNodes(e,p,{at:d,voids:i}),Ad.moveNodes(e,{at:s,match:e=>_f.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}})}},yd=(e,t)=>{if(_f.isElement(t)){var n=t;return!!Rf.isVoid(e,t)||1===n.children.length&&yd(e,n.children[0])}return!Rf.isEditor(t)},md=(e,t)=>{if(td.isCollapsed(t))return t.anchor;var[,n]=td.edges(t),r=Rf.pointRef(e,n);return Ad.delete(e,{at:t}),r.unref()},bd=(e,t)=>{var[n]=Rf.node(e,t);return e=>e===n};function wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wd(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Dd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Ad.select(e,r.anchor);else if("focus"===n)Ad.select(e,r.focus);else if("start"===n){var[o]=td.edges(r);Ad.select(e,o)}else if("end"===n){var[,i]=td.edges(r);Ad.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=td.isBackward(n)?"focus":"anchor"),"end"===a&&(a=td.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Rf.before(e,u,l):Rf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Rf.before(e,s,l):Rf.after(e,s,l);d&&(c.focus=d)}Ad.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Rf.range(e,t),n)Ad.setSelection(e,t);else{if(!td.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=td.isBackward(r)?"focus":"anchor"),"end"===o&&(o=td.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Ad.setSelection(e,{["anchor"===o?"anchor":"focus"]:Ed(Ed({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Zf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Zf.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Cd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rf.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(td.isRange(a)&&td.isCollapsed(a)&&(a=a.anchor),Zf.isPoint(a)){var s=Rf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Rf.before(e,a,c)||Rf.start(e,[]):Rf.after(e,a,c)||Rf.end(e,[])},u=!0}}if(qf.isPath(a))Ad.removeNodes(e,{at:a,voids:i});else if(!td.isCollapsed(a)){if(!u){var[,f]=td.edges(a),d=Rf.end(e,[]);Zf.equals(f,d)||(a=Rf.unhangRange(e,a,{voids:i}))}var[p,h]=td.edges(a),g=Rf.above(e,{match:t=>Rf.isBlock(e,t),at:p,voids:i}),v=Rf.above(e,{match:t=>Rf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!qf.equals(g[1],v[1]),m=qf.equals(p.path,h.path),b=i?null:Rf.void(e,{at:p,mode:"highest"}),w=i?null:Rf.void(e,{at:h,mode:"highest"});if(b){var E=Rf.before(e,p);E&&g&&qf.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=Rf.after(e,h);D&&v&&qf.isAncestor(v[1],D.path)&&(h=D)}var C,x=[];for(var S of Rf.nodes(e,{at:a,voids:i})){var[A,O]=S;C&&0===qf.compare(O,C)||(!i&&Rf.isVoid(e,A)||!qf.isCommon(O,p.path)&&!qf.isCommon(O,h.path))&&(x.push(S),C=O)}var k=Array.from(x,t=>{var[,n]=t;return Rf.pathRef(e,n)}),B=Rf.pointRef(e,p),F=Rf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=Rf.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();Ad.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=Rf.leaf(e,R),{path:z}=R,H=m?p.offset:0,V=M.text.slice(H,h.offset);V.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:V})}!m&&y&&F.current&&B.current&&Ad.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var $=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&$&&Ad.select(e,$)}}})},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(td.isRange(i))if(r||(i=Rf.unhangRange(e,i)),td.isCollapsed(i))i=i.anchor;else{var[,a]=td.edges(i);if(!o&&Rf.void(e,{at:a}))return;var u=Rf.pointRef(e,a);Ad.delete(e,{at:i}),i=u.unref()}else qf.isPath(i)&&(i=Rf.start(e,i));if(o||!Rf.void(e,{at:i})){var s=Rf.above(e,{at:i,match:t=>Rf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Rf.isEnd(e,i,l)?i=Rf.after(e,l):Rf.isStart(e,i,l)&&(i=Rf.before(e,l))}var c=Rf.above(e,{match:t=>Rf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Rf.isStart(e,i,f),p=Rf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=$f.first({children:t},[]),[,m]=$f.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&qf.isAncestor(r,y)&&_f.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&qf.isAncestor(r,m)&&_f.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of $f.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],C=[],x=[],S=!0,A=!1;for(var[O]of b)_f.isElement(O)&&!e.isInline(O)?(S=!1,A=!0,C.push(O)):S?D.push(O):x.push(O);var[k]=Rf.nodes(e,{at:i,match:t=>sd.isText(t)||Rf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=Rf.isStart(e,i,B),T=Rf.isEnd(e,i,B),_=Rf.pathRef(e,p?qf.next(f):f),P=Rf.pathRef(e,T?qf.next(B):B),j=Rf.pathRef(e,f);Ad.splitNodes(e,{at:i,match:t=>A?Rf.isBlock(e,t):sd.isText(t)||Rf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=Rf.pathRef(e,!F||F&&T?qf.next(B):B);if(Ad.insertNodes(e,D,{at:N.current,match:t=>sd.isText(t)||Rf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&Ad.delete(e,{at:j.unref(),voids:o}),Ad.insertNodes(e,C,{at:_.current,match:t=>Rf.isBlock(e,t),mode:"lowest",voids:o}),Ad.insertNodes(e,x,{at:P.current,match:t=>sd.isText(t)||Rf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=x.length>0?qf.previous(P.current):C.length>0?qf.previous(_.current):qf.previous(N.current);var L=Rf.end(e,I);Ad.select(e,L)}N.unref(),_.unref(),P.unref()}}})},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rf.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(qf.isPath(o)&&(o=Rf.range(e,o)),td.isRange(o))if(td.isCollapsed(o))o=o.anchor;else{var i=td.end(o);if(!r&&Rf.void(e,{at:i}))return;var a=Rf.pointRef(e,i);Ad.delete(e,{at:o,voids:r}),o=a.unref(),Ad.setSelection(e,{anchor:o,focus:o})}if(r||!Rf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ad=Sd(Sd(Sd(Sd({},fd),vd),Dd),Cd),Od="[object Map]",kd="[object Set]",Bd=/^\[object .+?Constructor\]$/,Fd=/^(?:0|[1-9]\d*)$/,Td="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",_d="\\ud83c[\\udffb-\\udfff]",Pd="[^\\ud800-\\udfff]",jd="(?:\\ud83c[\\udde6-\\uddff]){2}",Nd="[\\ud800-\\udbff][\\udc00-\\udfff]",Id="(?:"+Td+"|"+_d+")?",Ld="[\\ufe0e\\ufe0f]?"+Id+"(?:\\u200d(?:"+[Pd,jd,Nd].join("|")+")[\\ufe0e\\ufe0f]?"+Id+")*",Rd="(?:"+[Pd+Td+"?",Td,jd,Nd,"[\\ud800-\\udfff]"].join("|")+")",Md=RegExp(_d+"(?="+_d+")|"+Rd+Ld,"g"),zd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Hd="object"==typeof F&&F&&F.Object===Object&&F,Vd="object"==typeof self&&self&&self.Object===Object&&self,$d=Hd||Vd||Function("return this")();function Ud(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Wd(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Gd,qd,Kd=Function.prototype,Yd=Object.prototype,Xd=$d["__core-js_shared__"],Zd=function(){var e=/[^.]+$/.exec(Xd&&Xd.keys&&Xd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Jd=Kd.toString,Qd=Yd.hasOwnProperty,ep=Yd.toString,tp=RegExp("^"+Jd.call(Qd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),np=$d.Symbol,rp=np?np.iterator:void 0,op=Yd.propertyIsEnumerable,ip=(Gd=Object.keys,qd=Object,function(e){return Gd(qd(e))}),ap=vp($d,"DataView"),up=vp($d,"Map"),sp=vp($d,"Promise"),lp=vp($d,"Set"),cp=vp($d,"WeakMap"),fp=bp(ap),dp=bp(up),pp=bp(sp),hp=bp(lp),gp=bp(cp);function vp(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!Cp(e)||(t=e,Zd&&Zd in t))return!1;var t,n=Dp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?tp:Bd;return n.test(bp(e))}(o)?o:void 0}var yp=function(e){return ep.call(e)};function mp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Fd.test(e))&&e>-1&&e%1==0&&e<t}function bp(e){if(null!=e){try{return Jd.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(ap&&"[object DataView]"!=yp(new ap(new ArrayBuffer(1)))||up&&yp(new up)!=Od||sp&&"[object Promise]"!=yp(sp.resolve())||lp&&yp(new lp)!=kd||cp&&"[object WeakMap]"!=yp(new cp))&&(yp=function(e){var t=ep.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?bp(n):void 0;if(r)switch(r){case fp:return"[object DataView]";case dp:return Od;case pp:return"[object Promise]";case hp:return kd;case gp:return"[object WeakMap]"}return t});var wp=Array.isArray;function Ep(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!Dp(e);var t}function Dp(e){var t=Cp(e)?ep.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Cp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function xp(e){return!!e&&"object"==typeof e}function Sp(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,function(t){return e[t]})}(e,Ep(t=e)?function(e){var t,n,r=wp(e)||xp(n=t=e)&&Ep(n)&&Qd.call(t,"callee")&&(!op.call(t,"callee")||"[object Arguments]"==ep.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!Qd.call(e,a)||i&&("length"==a||mp(a,o))||r.push(a);return r}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Yd))return ip(e);var t,n,r=[];for(var o in Object(e))Qd.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var Ap=function(e){if(!e)return[];if(Ep(e))return"string"==typeof(t=e)||!wp(t)&&xp(t)&&"[object String]"==ep.call(t)?function(e){return t=e,zd.test(t)?function(e){return e.match(Md)||[]}(e):function(e){return e.split("")}(e);var t}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);var t;if(rp&&e[rp])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[rp]());var n=yp(e);return(n==Od?Ud:n==kd?Wd:Sp)(e)};function Op(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function kp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(function(n){void 0===e[n]?e[n]=t[n]:Op(t[n])&&Op(e[n])&&Object.keys(t[n]).length>0&&kp(e[n],t[n])})}var Bp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Fp(){var e="undefined"!=typeof document?document:{};return kp(e,Bp),e}var Tp={document:Bp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function _p(){var e="undefined"!=typeof window?window:{};return kp(e,Tp),e}function Pp(e){return(Pp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jp(e,t){return(jp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Np(e,t,n){return Np=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&jp(o,n.prototype),o},Np.apply(null,arguments)}function Ip(e){var t="function"==typeof Map?new Map:void 0;return Ip=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Np(e,arguments,Pp(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),jp(r,e)},Ip(e)}var Lp=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Ip(Array));function Rp(e){void 0===e&&(e=[]);var t=[];return e.forEach(function(e){Array.isArray(e)?t.push.apply(t,Rp(e)):t.push(e)}),t}function Mp(e,t){return Array.prototype.filter.call(e,t)}function zp(e,t){var n=_p(),r=Fp(),o=[];if(!t&&e instanceof Lp)return e;if(!e)return new Lp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Lp)return e;o=e}return new Lp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Rp(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){var t;(t=e.classList).add.apply(t,r)}),this}function Vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Rp(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){var t;(t=e.classList).remove.apply(t,r)}),this}function $p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Rp(t.map(function(e){return e.split(" ")}));return Mp(this,function(e){return r.filter(function(t){return e.classList.contains(t)}).length>0}).length>0}function Up(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Wp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Gp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function qp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),zp(t).is(o))i.apply(t,n);else for(var r=zp(t).parents(),a=0;a<r.length;a+=1)zp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Xp(){var e=_p();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Zp(){var e=_p();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Jp(){if(this.length>0){var e=_p(),t=Fp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Qp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function eh(){for(var e=_p(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function th(e,t){var n,r=_p();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function nh(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function rh(e){return zp(Mp(this,e))}function oh(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function ih(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function ah(e){var t,n,r=_p(),o=Fp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=zp(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Lp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function uh(){for(var e,t=Fp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Lp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function sh(e){var t,n,r=Fp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Lp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function lh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?zp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return zp(t)}function ch(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?zp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return zp(t)}function fh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return zp(t)}function dh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!zp(r[o]).is(e)||t.push(r[o]);return zp(t)}function ph(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function hh(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}zp.fn=Lp.prototype;var gh="resize scroll".split(" ");function vh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)gh.indexOf(e)<0&&(e in this[o]?this[o][e]():zp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var yh=vh("click"),mh=vh("focus"),bh=/^(?:0|[1-9]\d*)$/;function wh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Eh=Object.prototype,Dh=Eh.hasOwnProperty,Ch=Eh.toString,xh=Eh.propertyIsEnumerable,Sh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var Ah,Oh=(Ah=function(e,t){return e&&kh(e,t,_h)},function(e,t){if(null==e)return e;if(!Th(e))return Ah(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),kh=function(){return function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e}}();function Bh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||bh.test(e))&&e>-1&&e%1==0&&e<t}var Fh=Array.isArray;function Th(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!function(e){var t,n,r=(n=typeof(t=e),!t||"object"!=n&&"function"!=n?"":Ch.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function _h(e){return Th(e)?function(e){var t,n,r=Fh(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&Th(n)&&Dh.call(t,"callee")&&(!xh.call(t,"callee")||"[object Arguments]"==Ch.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!Dh.call(e,a)||i&&("length"==a||Bh(a,o))||r.push(a);return r}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Eh))return Sh(e);var t,n,r=[];for(var o in Object(e))Dh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Ph(e){return e}var jh=function(e,t){return(Fh(e)?wh:Oh)(e,"function"==typeof t?t:Ph)};let Nh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Ih=/^\s+|\s+$/g,Lh=/^[-+]0x[0-9a-f]+$/i,Rh=/^0b[01]+$/i,Mh=/^0o[0-7]+$/i,zh=parseInt,Hh="object"==typeof F&&F&&F.Object===Object&&F,Vh="object"==typeof self&&self&&self.Object===Object&&self,$h=Hh||Vh||Function("return this")(),Uh=Object.prototype.toString,Wh=Math.max,Gh=Math.min,qh=function(){return $h.Date.now()};function Kh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=qh();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?Gh(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=qh(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Xh(t)||0,Yh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Wh(Xh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(qh())},y}function Yh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Xh(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==Uh.call(t))return NaN;var t;if(Yh(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Yh(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ih,"");var r=Rh.test(e);return r||Mh.test(e)?zh(e.slice(2),r?2:8):Lh.test(e)?NaN:+e}var Zh=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Yh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Kh(e,t,{leading:r,maxWait:t,trailing:o})};const Jh={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Qh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const eg=Array.isArray;function tg(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function ng(e){return void 0===e}function rg(e){return void 0!==e}const og=Qh("",{},[],void 0,void 0);function ig(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function ag(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const ug=["create","update","remove","destroy","pre","post"];function sg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Jh;for(const c of ug)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;rg(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)ng(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=rg(s)&&rg(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](og,e);if(eg(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else tg(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;rg(v)&&(null===(a=v.create)||void 0===a||a.call(v,og,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(rg(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;rg(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}ng(t.text)?rg(v)&&rg(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:ig(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):ig(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):ig(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):ig(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=ag(t,p,g)),c=u[b.key],ng(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):rg(y)?(rg(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):rg(v)?s(g,v,0,v.length-1):rg(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(rg(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(void 0!==e.sel||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return Qh(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),ig(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function lg(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&lg(e,t[r].children,t[r].sel)}}function cg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),eg(n)?r=n:tg(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(eg(t)?r=t:tg(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)tg(r[i])&&(r[i]=Qh(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||lg(a,r,e),Qh(e,a,r,o,void 0)}function fg(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const dg={create:fg,update:fg};function pg(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const hg={create:pg,update:pg},gg=/[A-Z]/g;function vg(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(gg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(gg,"-$&").toLowerCase(),i[r]))}const yg={create:vg,update:vg};function mg(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)mg(e[r],t,n)}function bg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&mg(r[n],t,e)}function wg(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){bg(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Eg={create:wg,update:wg,destroy:wg};function Dg(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const Cg={create:Dg,update:Dg},xg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Sg=!1;function Ag(e,t,n){var r;r=function(){e[t]=n},xg(function(){xg(r)})}function Og(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Ag(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const kg={pre:function(){Sg=!1},create:Og,update:Og,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Sg||(e.elm.offsetLeft,Sg=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",function(e){e.target===o&&--u,0===u&&t()})}};function Bg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Bg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Qh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Fg(e,t,...n){const r=Bg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?cg(e,t,r[0].text):cg(e,t,r)}Fg||(Fg={});var Tg,_g=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jg="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ng="["+jg+"]",Ig="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Lg="\\d+",Rg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Mg="[^\\ud800-\\udfff"+jg+Lg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",zg="\\ud83c[\\udffb-\\udfff]",Hg="[^\\ud800-\\udfff]",Vg="(?:\\ud83c[\\udde6-\\uddff]){2}",$g="[\\ud800-\\udbff][\\udc00-\\udfff]",Ug="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Wg="(?:"+Rg+"|"+Mg+")",Gg="(?:"+Ug+"|"+Mg+")",qg="(?:"+Ig+"|"+zg+")?",Kg="[\\ufe0e\\ufe0f]?"+qg+"(?:\\u200d(?:"+[Hg,Vg,$g].join("|")+")[\\ufe0e\\ufe0f]?"+qg+")*",Yg="(?:"+["[\\u2700-\\u27bf]",Vg,$g].join("|")+")"+Kg,Xg="(?:"+[Hg+Ig+"?",Ig,Vg,$g,"[\\ud800-\\udfff]"].join("|")+")",Zg=RegExp("['’]","g"),Jg=RegExp(Ig,"g"),Qg=RegExp(zg+"(?="+zg+")|"+Xg+Kg,"g"),ev=RegExp([Ug+"?"+Rg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ng,Ug,"$"].join("|")+")",Gg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ng,Ug+Wg,"$"].join("|")+")",Ug+"?"+Wg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ug+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Lg,Yg].join("|"),"g"),tv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),nv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rv="object"==typeof F&&F&&F.Object===Object&&F,ov="object"==typeof self&&self&&self.Object===Object&&self,iv=rv||ov||Function("return this")(),av=(Tg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==Tg?void 0:Tg[e]});function uv(e){return tv.test(e)}var sv=Object.prototype.toString,lv=iv.Symbol,cv=lv?lv.prototype:void 0,fv=cv?cv.toString:void 0;function dv(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==sv.call(t))return fv?fv.call(e):"";var t,n=e+"";return"0"==n&&1/e==-1/0?"-0":n}(e)}for(var pv,hv=(pv=function(e,t,n){return t=t.toLowerCase(),e+(n?gv(dv(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=dv(e),void 0===t?(n=e,nv.test(n)?function(e){return e.match(ev)||[]}(e):function(e){return e.match(_g)||[]}(e)):e.match(t)||[];var n}((t=e,(t=dv(t))&&t.replace(Pg,av).replace(Jg,"")).replace(Zg,"")),pv,"");var t}),gv=function(e){var t=uv(e=dv(e))?function(e){return uv(e)?e.match(Qg)||[]:(t=e,t.split(""));var t}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r},vv=hv,yv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),mv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},bv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:yv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},wv={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Ev=1;Ev<20;Ev++)wv["f"+Ev]=111+Ev;function Dv(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in mv)r[mv[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=xv(d),g=mv[h];if(d.length>1&&!g&&!bv[d]&&!wv[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Cv(d)),g&&(r[g]=!p||null)}}catch(v){s=!0,l=v}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)}),o=function(e){return r.some(function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)})};return null==n?o:o(n)}function Cv(e){return e=xv(e),wv[e]||e.toUpperCase().charCodeAt(0)}function xv(e){return e=e.toLowerCase(),bv[e]||e}var Sv=Dv,Av=function(e,t){return Dv(e,{byKey:!0},t)},Ov=/^\s+|\s+$/g,kv=/^[-+]0x[0-9a-f]+$/i,Bv=/^0b[01]+$/i,Fv=/^0o[0-7]+$/i,Tv=parseInt,_v="object"==typeof F&&F&&F.Object===Object&&F,Pv="object"==typeof self&&self&&self.Object===Object&&self,jv=_v||Pv||Function("return this")(),Nv=Object.prototype.toString,Iv=Math.max,Lv=Math.min,Rv=function(){return jv.Date.now()};function Mv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function zv(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==Nv.call(t))return NaN;var t;if(Mv(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Mv(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ov,"");var r=Bv.test(e);return r||Fv.test(e)?Tv(e.slice(2),r?2:8):kv.test(e)?NaN:+e}var Hv,Vv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=Rv();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?Lv(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Rv(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=zv(t)||0,Mv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Iv(zv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(Rv())},y},$v=T(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",D="[object Int8Array]",C="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",O="[object Uint16Array]",k="[object Uint32Array]",B=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[m]=P[b]=P[i]=P[a]=P[w]=P[E]=P[D]=P[C]=P[x]=P[l]=P[c]=P[f]=P[p]=P[h]=P[g]=P[v]=P[S]=P[A]=P[O]=P[k]=!0,P["[object Error]"]=P[u]=P[y]=!1;var j="object"==typeof F&&F&&F.Object===Object&&F,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function V(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ge),De=ze(ve),Ce=re?re.prototype:void 0,xe=Ce?Ce.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Ae(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Te(e,t,n,r,d,y,F){var T;if(r&&(T=y?r(e,d,y,F):r(e)),void 0!==T)return T;if(!Ge(e))return e;var _,j,N,I=Ve(e);if(I){if(j=(_=e).length,N=_.constructor(j),j&&"string"==typeof _[0]&&Q.call(_,"index")&&(N.index=_.index,N.input=_.input),T=N,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var L=Le(e),R=L==u||L==s;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||R&&!y){if($(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:Ge(t=ie(e))?ae(t):{};var t}(R?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,qe(t),e)}(T,e))}else{if(!P[L])return y?e:{};T=function(e,t,n,r){var o,u,s=e.constructor;switch(t){case m:return _e(e);case i:case a:return new s(+e);case b:return o=e,u=r?_e(o.buffer):o.buffer,new o.constructor(u,o.byteOffset,o.byteLength);case w:case E:case D:case C:case x:case S:case A:case O:case k:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return V(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case c:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,B.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return V(t?n(G(e),!0):G(e),H,new e.constructor)}(e,r,n);case v:return function(e){return xe?Object(xe.call(e)):{}}(e)}}(e,L,Te,t)}}F||(F=new ke);var M=F.get(e);if(M)return M;if(F.set(e,T),!I)var W=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ie)}(e):qe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(W||e,function(o,i){W&&(o=e[i=o]),Be(T,i,Te(o,t,n,r,i,e,F))}),T}function _e(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Be(n,a,e[a])}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ge(e)||(t=e,Z&&Z in t))&&(We(e)||$(e)?te:T).test(ze(e));var t}(o)?o:void 0}Se.prototype.clear=function(){this.__data__=ye?ye(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Se,map:new(pe||Ae),string:new Se}},Oe.prototype.delete=function(e){return je(this,e).delete(e)},Oe.prototype.get=function(e){return je(this,e).get(e)},Oe.prototype.has=function(e){return je(this,e).has(e)},Oe.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Ae},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie=le?W(le,Object):function(){return[]},Le=function(e){return ee.call(e)};function Re(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(e){if(null!=e){try{return J.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(de&&Le(new de(new ArrayBuffer(1)))!=b||pe&&Le(new pe)!=l||he&&Le(he.resolve())!=d||ge&&Le(new ge)!=h||ve&&Le(new ve)!=y)&&(Le=function(e){var t=ee.call(e),n=t==f?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return b;case be:return l;case we:return d;case Ee:return h;case De:return y}return t});var Ve=Array.isArray;function $e(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!We(e);var t}var Ue=ce||function(){return!1};function We(e){var t=Ge(e)?ee.call(e):"";return t==u||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return $e(e)?function(e){var t,n,r=Ve(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&$e(n)&&Q.call(t,"callee")&&(!ue.call(t,"callee")||ee.call(t)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=r.length,a=!!i;for(var u in e)!Q.call(e,u)||a&&("length"==u||Re(u,i))||r.push(u);return r}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}});function Uv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Wv=0;function Gv(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r
- /**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */}function qv(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=Gv(r,new RegExp("%\\{".concat(o,"\\}"),"g"),e)}return r}var Kv=(Hv=function(e){return"__private_"+Wv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Hv,{value:Yv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Uv(this,Hv)[Hv],this):Uv(this,Hv)[Hv](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,r=e,!Object.prototype.hasOwnProperty.call(n,r))throw new Error("missing string: ".concat(e));var n,r;const o=this.locale.strings[e];if("object"==typeof o){if(t&&void 0!==t.smart_count)return qv(o[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return qv(o,t)}});function Yv(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Xv=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,function r(){n.apply(this,arguments),e.off(t,r)})},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},Zv={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},Jv=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Qv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Qv.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var ey=/[\/\+\.]/,ty=0;var ny=function(e){return"__private_"+ty+++"_"+e}("publish");class ry{constructor(){Object.defineProperty(this,ny,{value:oy}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,ny)[ny](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function oy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}ry.VERSION="2.0.3";var iy=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},ay={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function uy(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-".concat(e.charCodeAt(0).toString(32)),"/"))+t}var sy=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};var ly={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}}},cy={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},fy=Zv;let dy,py;function hy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gy=0;function vy(e){return"__private_"+gy+++"_"+e}const{nanoid:yy}=fy,{justErrorsLogger:my,debugLogger:by}=ly;class wy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Ey extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Dy=vy("plugins"),Cy=vy("storeUnsubscribe"),xy=vy("emitter"),Sy=vy("preProcessors"),Ay=vy("uploaders"),Oy=vy("postProcessors"),ky=vy("checkRestrictions"),By=vy("checkMinNumberOfFiles"),Fy=vy("checkRequiredMetaFieldsOnFile"),Ty=vy("checkRequiredMetaFields"),_y=vy("showOrLogErrorAndThrow"),Py=vy("assertNewUploadAllowed"),jy=vy("checkAndCreateFileStateObject"),Ny=vy("startIfAutoProceed"),Iy=vy("addListeners"),Ly=vy("updateOnlineStatus"),Ry=vy("createUpload"),My=vy("getUpload"),zy=vy("removeUpload"),Hy=vy("runUpload");dy=Symbol.for("uppy test: getPlugins"),py=Symbol.for("uppy test: createUpload");class Vy{constructor(e){Object.defineProperty(this,Hy,{value:tm}),Object.defineProperty(this,zy,{value:em}),Object.defineProperty(this,My,{value:Qy}),Object.defineProperty(this,Ry,{value:Jy}),Object.defineProperty(this,Iy,{value:Zy}),Object.defineProperty(this,Ny,{value:Xy}),Object.defineProperty(this,jy,{value:Yy}),Object.defineProperty(this,Py,{value:Ky}),Object.defineProperty(this,_y,{value:qy}),Object.defineProperty(this,Ty,{value:Gy}),Object.defineProperty(this,Fy,{value:Wy}),Object.defineProperty(this,By,{value:Uy}),Object.defineProperty(this,ky,{value:$y}),Object.defineProperty(this,Dy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Cy,{writable:!0,value:void 0}),Object.defineProperty(this,xy,{writable:!0,value:Xv()}),Object.defineProperty(this,Sy,{writable:!0,value:new Set}),Object.defineProperty(this,Ay,{writable:!0,value:new Set}),Object.defineProperty(this,Oy,{writable:!0,value:new Set}),Object.defineProperty(this,Ly,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=cy;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new ry,logger:my,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=by),this.log("Using Core v".concat(this.constructor.VERSION)),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Zh(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:sy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),hy(this,Cy)[Cy]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),hy(this,Iy)[Iy]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];hy(this,xy)[xy].emit(e,...n)}on(e,t){return hy(this,xy)[xy].on(e,t),this}once(e,t){return hy(this,xy)[xy].once(e,t),this}off(e,t){return hy(this,xy)[xy].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error("Can’t set state for ".concat(e," (the file could have been removed)"));this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new Kv([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){hy(this,Sy)[Sy].add(e)}removePreProcessor(e){return hy(this,Sy)[Sy].delete(e)}addPostProcessor(e){hy(this,Oy)[Oy].add(e)}removePostProcessor(e){return hy(this,Oy)[Oy].delete(e)}addUploader(e){hy(this,Ay)[Ay].add(e)}removeUploader(e){return hy(this,Ay)[Ay].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),u=r.filter(e=>e.progress.uploadStarted),s=r.filter(e=>e.isPaused),l=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),f=o.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return hy(this,ky)[ky](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){hy(this,Py)[Py](e);const{files:t}=this.getState();let n=hy(this,jy)[jy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log("Replaced the blob in the restored ghost file: ".concat(n.name,", ").concat(n.id))),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log("Added file: ".concat(n.name,", ").concat(n.id,", mime type: ").concat(n.type)),hy(this,Ny)[Ny](),n.id}addFiles(e){hy(this,Py)[Py]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=hy(this,jy)[jy](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log("Replaced blob in a ghost file: ".concat(r.name,", ").concat(r.id))),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}if(this.setState({files:t}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log("Added batch of ".concat(n.length," files")):Object.keys(n).forEach(e=>{this.log("Added file: ".concat(n[e].name,"\n id: ").concat(n[e].id,"\n type: ").concat(n[e].type))}),n.length>0&&hy(this,Ny)[Ny](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+="\n * ".concat(t.message)}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach(e=>{this.emit("file-removed",a[e],t)}),l.length>5?this.log("Removed ".concat(l.length," files")):this.log("Removed files: ".concat(l.join(", ")))}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=hy(this,Ry)[Ry](t,{forceAllowNewUpload:!0});return hy(this,Hy)[Hy](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=hy(this,Ry)[Ry]([e],{forceAllowNewUpload:!0});return hy(this,Hy)[Hy](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(e.id));const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError("Expected a plugin class, but got ".concat(null===e?"null":typeof e,". Please verify that the plugin was imported and spelled correctly."));const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e="Already found a plugin named '".concat(o.id,"'. Tried to use: '").concat(r,"'.\nUppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.");throw new Error(e)}return e.VERSION&&this.log("Using ".concat(r," v").concat(e.VERSION)),n.type in hy(this,Dy)[Dy]?hy(this,Dy)[Dy][n.type].push(n):hy(this,Dy)[Dy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(hy(this,Dy)[Dy])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[dy](e){return hy(this,Dy)[Dy][e]}iteratePlugins(e){Object.values(hy(this,Dy)[Dy]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin ".concat(e.id)),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=hy(this,Dy)[Dy][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log("Closing Uppy instance ".concat(this.opts.id,": removing all files and uninstalling plugins")),this.reset(),hy(this,Cy)[Cy](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",hy(this,Ly)[Ly]),window.removeEventListener("offline",hy(this,Ly)[Ly]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log('Core: attempting to restore upload "'.concat(e,'"')),this.getState().currentUploads[e]?hy(this,Hy)[Hy](e):(hy(this,zy)[zy](e),Promise.reject(new Error("Nonexistent upload")))}[py](){return hy(this,Ry)[Ry](...arguments)}addResultData(e,t){if(!hy(this,My)[My](e))return void this.log("Not setting result for an upload that has been removed: ".concat(e));const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=hy(this,Dy)[Dy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{hy(this,By)[By](t),hy(this,Ty)[Ty](t)}).catch(e=>{hy(this,_y)[_y](e)}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=hy(this,Ry)[Ry](r);return hy(this,Hy)[Hy](o)}).catch(e=>{hy(this,_y)[_y](e,{showInformer:!1})}))}}function $y(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new wy("".concat(this.i18n("youCanOnlyUploadX",{smart_count:i})));if(a&&!a.some(t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t){var n=new Qv(e,ey||/[\/\.]/);return void 0!==t?n.match(t):n}(t,e);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase())){const e=a.join(", ");throw new wy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach(e=>{n+=e.size}),n>o)throw new wy(this.i18n("exceedsSize",{size:Jv(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new wy(this.i18n("exceedsSize",{size:Jv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new wy(this.i18n("inferiorSize",{size:Jv(r)}))}function Uy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new wy("".concat(this.i18n("youHaveToAtLeastSelectX",{smart_count:t})))}function Wy(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new wy("".concat(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})));r.push(n),o.push(t[i]),hy(this,_y)[_y](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Gy(e){const t=Object.keys(e).flatMap(e=>{const t=this.getFile(e);return hy(this,Fy)[Fy](t)});if(t.length)throw new Ey(t,"".concat(this.i18n("missingRequiredMetaField")))}function qy(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=" ".concat(a)),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Ky(e){const{allowNewUpload:t}=this.getState();!1===t&&hy(this,_y)[_y](new wy(this.i18n("noMoreFilesAllowed")),{file:e})}function Yy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=iy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in ay?ay[n]:"application/octet-stream"}(t),r=(u=n,(s=t).name?s.name:"image"===u.split("/")[0]?"".concat(u.split("/")[0],".").concat(u.split("/")[1]):"noname"),o=iy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-".concat(uy(e.name.toLowerCase()))),void 0!==e.type&&(t+="-".concat(e.type)),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-".concat(uy(e.meta.relativePath.toLowerCase()))),void 0!==e.data.size&&(t+="-".concat(e.data.size)),void 0!==e.data.lastModified&&(t+="-".concat(e.data.lastModified)),t}({...t,type:n});var u,s;if(this.checkIfFileAlreadyExists(a)){const e=new wy(this.i18n("noDuplicates",{fileName:r}));hy(this,_y)[_y](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const c=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);!1===d?hy(this,_y)[_y](new wy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof d&&null!==d&&(f=d);try{const t=Object.keys(e).map(t=>e[t]);hy(this,ky)[ky](f,t)}catch(u){hy(this,_y)[_y](u,{file:f})}return f}function Xy(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Zy(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" ".concat(e.details)),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=" ".concat(n.details)),e.message=this.i18n("failedToUpload",{file:t.name}),hy(this,_y)[_y](e,{throwErr:!1})}else hy(this,_y)[_y](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: ".concat(e.id))}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(e.id));const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:hy(this,Oy)[Oy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: ".concat(e.id))}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(e.id));const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: ".concat(e.id))}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(e.id));const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&hy(this,Fy)[Fy](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",hy(this,Ly)[Ly]),window.addEventListener("offline",hy(this,Ly)[Ly]),setTimeout(hy(this,Ly)[Ly],3e3))}function Jy(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=yy();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Qy(e){const{currentUploads:t}=this.getState();return t[e]}function em(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function tm(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...hy(this,Sy)[Sy],...hy(this,Ay)[Ay],...hy(this,Oy)[Oy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),hy(this,zy)[zy](e),a}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),hy(this,zy)[zy](e)),null==i&&this.log("Not setting result for an upload that has been removed: ".concat(e)),i}Vy.VERSION="2.1.3";var nm=Vy,rm=T(function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var e;D.__r=a.length;)e=a.sort(function(e,t){return e.__v.__b-t.__v.__b}),a=[],e.some(function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))})}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,D=r&&r.__k||f,C=D.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=D[d])||h&&g.key==h.key&&g.type===h.type)D[d]=void 0;else for(p=0;p<C;p++){if((h=D[p])&&g.key==h.key&&g.type===h.type){D[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=x(g,s,e):s=S(e,g,h,D,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=C;d--;)null!=D[d]&&("function"==typeof n.type&&null!=D[d].__e&&D[d].__e==n.__d&&(n.__d=b(r,d+1)),P(D[d],D[d]));if(E)for(d=0;d<E.length;d++)_(E[d],E[++d],E[++d])}function x(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?x(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,o,i,a,u,s,l,f){var d,g,v,w,E,D,x,S,A,k,B,F=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(f=o.__h,l=t.__e=o.__e,t.__h=null,u=[l]),(d=r.__b)&&d(t);try{e:if("function"==typeof F){if(S=t.props,A=(d=F.contextType)&&i[d.__c],k=d?A?A.props.value:d.__:i,o.__c?x=(g=t.__c=o.__c).__=g.__E:("prototype"in F&&F.prototype.render?t.__c=g=new F(S,k):(t.__c=g=new m(S,k),g.constructor=F,g.render=j),A&&A.sub(g),g.props=S,g.state||(g.state={}),g.context=k,g.__n=i,v=g.__d=!0,g.__h=[]),null==g.__s&&(g.__s=g.state),null!=F.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=p({},g.__s)),p(g.__s,F.getDerivedStateFromProps(S,g.__s))),w=g.props,E=g.state,v)null==F.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(null==F.getDerivedStateFromProps&&S!==w&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(S,k),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(S,g.__s,k)||t.__v===o.__v){g.props=S,g.state=g.__s,t.__v!==o.__v&&(g.__d=!1),g.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach(function(e){e&&(e.__=t)}),g.__h.length&&s.push(g);break e}null!=g.componentWillUpdate&&g.componentWillUpdate(S,g.__s,k),null!=g.componentDidUpdate&&g.__h.push(function(){g.componentDidUpdate(w,E,D)})}g.context=k,g.props=S,g.state=g.__s,(d=r.__r)&&d(t),g.__d=!1,g.__v=t,g.__P=e,d=g.render(g.props,g.state,g.context),g.state=g.__s,null!=g.getChildContext&&(i=p(p({},i),g.getChildContext())),v||null==g.getSnapshotBeforeUpdate||(D=g.getSnapshotBeforeUpdate(w,E)),B=null!=d&&d.type===y&&null==d.key?d.props.children:d,C(e,Array.isArray(B)?B:[B],t,o,i,a,u,s,l,f),g.base=t.__e,t.__h=null,g.__h.length&&s.push(g),x&&(g.__E=g.__=null),g.__e=!1}else null==u&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=function(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}(o.__e,t,o,i,a,u,s,f);(d=r.diffed)&&d(t)}catch(T){t.__v=null,(f||null!=u)&&(t.__e=l,t.__h=!!f,u[u.indexOf(l)]=null),r.__e(T,t,o)}}function T(e,t){r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(n){r.__e(n,t.__v)}})}function _(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(o){r.__e(o,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||_(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){r.__e(a,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function N(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(i){e=i}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){N(t,n,e)},t.isValidElement=i,t.options=r,t.render=N,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some(function(t){e(t,n)}):n.push(t)),n}}),om=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new Kv([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function im(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var am=0;const{render:um}=rm;var sm=function(e){return"__private_"+am+++"_"+e}("updateUI");class lm extends om{constructor(){super(...arguments),Object.defineProperty(this,sm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return im(this,sm)[sm]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}(e=>{this.uppy.getPlugin(this.id)&&(um(this.render(e),t),this.afterUpdate())}),this.uppy.log("Installing ".concat(n," to a DOM element '").concat(e,"'")),this.opts.replaceTargetContent&&(r.innerHTML=""),um(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof lm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return o=e,!1})}if(o)return this.uppy.log("Installing ".concat(n," to ").concat(o.id)),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing ".concat(n));let i="Invalid target option given to ".concat(n,".");throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=im(this,sm))[sm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var cm=lm;const{debugLogger:fm}=ly;var dm=nm,pm=nm,hm=cm,gm=om,vm=fm;dm.Uppy=pm,dm.UIPlugin=hm,dm.BasePlugin=gm,dm.debugLogger=vm;class ym extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var mm=ym,bm=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new mm(e)})};class wm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Em,Dm,Cm,xm,Sm,Am=wm;function Om(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var km=0;function Bm(e){return"__private_"+km+++"_"+e}async function Fm(e){if(401===e.status)throw new Am;const t=e.json();if(e.status<200||e.status>300){let n="Failed request with status: ".concat(e.status,". ").concat(e.statusText);try{const e=await t;n=e.message?"".concat(n," message: ").concat(e.message):n,n=e.requestId?"".concat(n," request-Id: ").concat(e.requestId):n}finally{throw new Error(n)}}return t}var Tm=(Dm=Bm("getPostResponseFunc"),Cm=Bm("getUrl"),xm=Bm("errorHandler"),Sm=Em=class e{constructor(e,t){Object.defineProperty(this,xm,{value:Pm}),Object.defineProperty(this,Cm,{value:_m}),Object.defineProperty(this,Dm,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Om(this,Cm)[Cm](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request ".concat(e),"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header ".concat(e)),delete n[e])}),n})}get(e,t){return this.preflightAndHeaders(e).then(t=>bm(Om(this,Cm)[Cm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Om(this,Dm)[Dm](t)).then(Fm).catch(Om(this,xm)[xm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then(n=>bm(Om(this,Cm)[Cm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})).then(Om(this,Dm)[Dm](n)).then(Fm).catch(Om(this,xm)[xm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then(n=>bm("".concat(this.hostname,"/").concat(e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})).then(Om(this,Dm)[Dm](n)).then(Fm).catch(Om(this,xm)[xm](r,e))}},Em.VERSION="2.0.4",Em.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client=".concat(Em.VERSION)},Sm);function _m(e){return/^(https?:|)\/\//.test(e)?e:"".concat(this.hostname,"/").concat(e)}function Pm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error("Could not ".concat(e," ").concat(Om(this,Cm)[Cm](t)));r.cause=n,n=r}return Promise.reject(n)}}var jm,Nm,Im,Lm,Rm,Mm={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})};let zm,Hm;function Vm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $m=0;function Um(e){return"__private_"+$m+++"_"+e}var Wm,Gm,qm=(jm=Um("queued"),Nm=Um("emitter"),Im=Um("isOpen"),Lm=Um("socket"),Rm=Um("handleMessage"),zm=Symbol.for("uppy test: getSocket"),Hm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,jm,{writable:!0,value:[]}),Object.defineProperty(this,Nm,{writable:!0,value:Xv()}),Object.defineProperty(this,Im,{writable:!0,value:!1}),Object.defineProperty(this,Lm,{writable:!0,value:void 0}),Object.defineProperty(this,Rm,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Vm(this,Im)[Im]}[zm](){return Vm(this,Lm)[Lm]}[Hm](){return Vm(this,jm)[jm]}open(){Vm(this,Lm)[Lm]=new WebSocket(this.opts.target),Vm(this,Lm)[Lm].onopen=()=>{for(Vm(this,Im)[Im]=!0;Vm(this,jm)[jm].length>0&&Vm(this,Im)[Im];){const e=Vm(this,jm)[jm].shift();this.send(e.action,e.payload)}},Vm(this,Lm)[Lm].onclose=()=>{Vm(this,Im)[Im]=!1},Vm(this,Lm)[Lm].onmessage=Vm(this,Rm)[Rm]}close(){var e;null==(e=Vm(this,Lm)[Lm])||e.close()}send(e,t){Vm(this,Im)[Im]?Vm(this,Lm)[Lm].send(JSON.stringify({action:e,payload:t})):Vm(this,jm)[jm].push({action:e,payload:t})}on(e,t){Vm(this,Nm)[Nm].on(e,t)}emit(e,t){Vm(this,Nm)[Nm].emit(e,t)}once(e,t){Vm(this,Nm)[Nm].once(e,t)}}),Km={RequestClient:Tm,Provider:class extends Tm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(()=>this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey="companion-".concat(this.pluginId,"-auth-token"),this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),"".concat(this.hostname,"/").concat(this.id,"/connect?").concat(new URLSearchParams(e))}fileUrl(e){return"".concat(this.hostname,"/").concat(this.id,"/get/").concat(e)}fetchPreAuthToken(){return this.companionKeysParams?this.post("".concat(this.id,"/preauth/"),{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken ".concat(e),"warning")}):Promise.resolve()}list(e){return this.get("".concat(this.id,"/list/").concat(e||""))}logout(){return this.get("".concat(this.id,"/logout")).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError("".concat(e.id,': the option "companionAllowedHosts" must be one of string, Array, RegExp'));e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://".concat(t.companionUrl.replace(/^\/\//,"")):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Mm}},Socket:qm},Ym=Zh(function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log("Upload progress: ".concat(r)),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zm=0;function Jm(e){return"__private_"+Zm+++"_"+e}var Qm=(Wm=Jm("emitter"),Gm=Jm("events"),class{constructor(e){Object.defineProperty(this,Wm,{writable:!0,value:void 0}),Object.defineProperty(this,Gm,{writable:!0,value:[]}),Xm(this,Wm)[Wm]=e}on(e,t){return Xm(this,Gm)[Gm].push([e,t]),Xm(this,Wm)[Wm].on(e,t)}remove(){for(const[e,t]of Xm(this,Gm)[Gm].splice(0))Xm(this,Wm)[Wm].off(e,t)}});function eb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tb=0;function nb(e){return"__private_"+tb+++"_"+e}var rb=nb("aliveTimer"),ob=nb("isDone"),ib=nb("onTimedOut"),ab=nb("timeout"),ub=class{constructor(e,t){Object.defineProperty(this,rb,{writable:!0,value:void 0}),Object.defineProperty(this,ob,{writable:!0,value:!1}),Object.defineProperty(this,ib,{writable:!0,value:void 0}),Object.defineProperty(this,ab,{writable:!0,value:void 0}),eb(this,ab)[ab]=e,eb(this,ib)[ib]=t}progress(){eb(this,ob)[ob]||eb(this,ab)[ab]>0&&(clearTimeout(eb(this,rb)[rb]),eb(this,rb)[rb]=setTimeout(eb(this,ib)[ib],eb(this,ab)[ab]))}done(){eb(this,ob)[ob]||(clearTimeout(eb(this,rb)[rb]),eb(this,rb)[rb]=null,eb(this,ob)[ob]=!0)}};function sb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lb=0;function cb(e){return"__private_"+lb+++"_"+e}var fb=cb("activeRequests"),db=cb("queuedHandlers"),pb=cb("call"),hb=cb("queueNext"),gb=cb("next"),vb=cb("queue"),yb=cb("dequeue");function mb(e){sb(this,fb)[fb]+=1;let t,n=!1;try{t=e()}catch(r){throw sb(this,fb)[fb]-=1,r}return{abort:()=>{n||(n=!0,sb(this,fb)[fb]-=1,t(),sb(this,hb)[hb]())},done:()=>{n||(n=!0,sb(this,fb)[fb]-=1,sb(this,hb)[hb]())}}}function bb(){queueMicrotask(()=>sb(this,gb)[gb]())}function wb(){if(sb(this,fb)[fb]>=this.limit)return;if(0===sb(this,db)[db].length)return;const e=sb(this,db)[db].shift(),t=sb(this,pb)[pb](e.fn);e.abort=t.abort,e.done=t.done}function Eb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{sb(this,yb)[yb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=sb(this,db)[db].findIndex(e=>n.priority>e.priority);return-1===r?sb(this,db)[db].push(n):sb(this,db)[db].splice(r,0,n),n}function Db(e){const t=sb(this,db)[db].indexOf(e);-1!==t&&sb(this,db)[db].splice(t,1)}var Cb,xb,Sb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,yb,{value:Db}),Object.defineProperty(this,vb,{value:Eb}),Object.defineProperty(this,gb,{value:wb}),Object.defineProperty(this,hb,{value:bb}),Object.defineProperty(this,pb,{value:mb}),Object.defineProperty(this,fb,{writable:!0,value:0}),Object.defineProperty(this,db,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return sb(this,fb)[fb]<this.limit?sb(this,pb)[pb](e):sb(this,vb)[vb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(u){n=Promise.reject(u)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),()=>{t=new Error("Cancelled")}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Ab=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Ob={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:kb}=fy,{Provider:Bb,RequestClient:Fb,Socket:Tb}=Km,{RateLimitedQueue:_b,internalRateLimitedQueue:Pb}=Sb;function jb(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Ab(e)?(n=new mm(n,e),n):(n.request=e,n)}function Nb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Ib=(xb=Cb=class extends om{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Ob;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return Ab(t)&&(n=new mm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Pb in this.opts?this.requests=this.opts[Pb]:this.requests=new _b(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=Nb(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(e=>{const t=this.getOptions(e),r=Nb(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log("uploading ".concat(t," of ").concat(n)),new Promise((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Qm(this.uppy);const a=new ub(r.timeout,()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)}),u=kb();i.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] ".concat(u," started"))}),i.upload.addEventListener("progress",t=>{this.uppy.log("[XHRUpload] ".concat(u," progress: ").concat(t.loaded," / ").concat(t.total)),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}),i.addEventListener("load",o=>{if(this.uppy.log("[XHRUpload] ".concat(u," finished")),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log("Download ".concat(e.name," from ").concat(a)),t(e)}const l=r.getResponseData(i.responseText,i),c=jb(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)}),i.addEventListener("error",()=>{this.uppy.log("[XHRUpload] ".concat(u," errored")),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=jb(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)}),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run(()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach(e=>{i.setRequestHeader(e,t.headers[e])}),i.send(o),()=>{a.done(),i.abort()}});this.onFileRemove(e.id,()=>{s.abort(),n(new Error("File removed"))}),this.onCancelAll(e.id,()=>{s.abort(),n(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(t=>{o[t]=e.meta[t]}),new(e.remote.providerOptions.provider?Bb:Fb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return"".concat(/^http:\/\//i.test(e)?"ws":"wss","://").concat(t)}(e.remote.companionUrl),u=new Tb({target:"".concat(a,"/api/").concat(i),autoOpen:!1});this.uploaderEvents[e.id]=new Qm(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),s.abort(),n("upload ".concat(e.id," was removed"))}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),s.abort(),n("upload ".concat(e.id," was canceled"))}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",t=>Ym(this,t,e)),u.on("success",r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)});const s=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(t=>{this.uppy.emit("upload-error",e,t),r(t)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new ub(this.opts.timeout,()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)}),l=t=>{e.forEach(e=>{this.uppy.emit("upload-error",e,t)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",t=>{s.progress(),t.lengthComputable&&e.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),u.addEventListener("load",r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach(e=>{this.uppy.emit("upload-success",e,o)}),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)}),u.addEventListener("error",()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{u.setRequestHeader(e,this.opts.headers[e])}),u.send(a),e.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(e){const t=e.map((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)});return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(e=>e.then(r,o))).then(()=>({successful:t,failed:n}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[Pb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(t.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Cb.VERSION="2.0.6",xb),Lb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Rb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Mb,zb,Hb=function(e){return e&&e.Math==Math&&e},Vb=Hb("object"==typeof globalThis&&globalThis)||Hb("object"==typeof window&&window)||Hb("object"==typeof self&&self)||Hb("object"==typeof Lb&&Lb)||function(){return this}()||Function("return this")(),$b=Object.defineProperty,Ub=function(e,t){try{$b(Vb,e,{value:t,configurable:!0,writable:!0})}catch(cP){Vb[e]=t}return t},Wb=Vb["__core-js_shared__"]||Ub("__core-js_shared__",{}),Gb=Rb(function(e){(e.exports=function(e,t){return Wb[e]||(Wb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),qb=Function.prototype,Kb=qb.bind,Yb=qb.call,Xb=Kb&&Kb.bind(Yb),Zb=Kb?function(e){return e&&Xb(Yb,e)}:function(e){return e&&function(){return Yb.apply(e,arguments)}},Jb=Vb.TypeError,Qb=function(e){if(null==e)throw Jb("Can't call method on "+e);return e},ew=Vb.Object,tw=function(e){return ew(Qb(e))},nw=Zb({}.hasOwnProperty),rw=Object.hasOwn||function(e,t){return nw(tw(e),t)},ow=0,iw=Math.random(),aw=Zb(1..toString),uw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+aw(++ow+iw,36)},sw=function(e){return"function"==typeof e},lw=function(e,t){return arguments.length<2?function(e){return sw(e)?e:void 0}(Vb[e]):Vb[e]&&Vb[e][t]},cw=lw("navigator","userAgent")||"",fw=Vb.process,dw=Vb.Deno,pw=fw&&fw.versions||dw&&dw.version,hw=pw&&pw.v8;hw&&(zb=(Mb=hw.split("."))[0]>0&&Mb[0]<4?1:+(Mb[0]+Mb[1])),!zb&&cw&&(!(Mb=cw.match(/Edge\/(\d+)/))||Mb[1]>=74)&&(Mb=cw.match(/Chrome\/(\d+)/))&&(zb=+Mb[1]);var gw=zb,vw=function(e){try{return!!e()}catch(t){return!0}},yw=!!Object.getOwnPropertySymbols&&!vw(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gw&&gw<41}),mw=yw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bw=Gb("wks"),ww=Vb.Symbol,Ew=ww&&ww.for,Dw=mw?ww:ww&&ww.withoutSetter||uw,Cw=function(e){if(!rw(bw,e)||!yw&&"string"!=typeof bw[e]){var t="Symbol."+e;yw&&rw(ww,e)?bw[e]=ww[e]:bw[e]=mw&&Ew?Ew(t):Dw(t)}return bw[e]},xw={};xw[Cw("toStringTag")]="z";var Sw="[object z]"===String(xw),Aw=!vw(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Ow=function(e){return"object"==typeof e?null!==e:sw(e)},kw=Vb.document,Bw=Ow(kw)&&Ow(kw.createElement),Fw=function(e){return Bw?kw.createElement(e):{}},Tw=!Aw&&!vw(function(){return 7!=Object.defineProperty(Fw("div"),"a",{get:function(){return 7}}).a}),_w=Vb.String,Pw=Vb.TypeError,jw=function(e){if(Ow(e))return e;throw Pw(_w(e)+" is not an object")},Nw=Function.prototype.call,Iw=Nw.bind?Nw.bind(Nw):function(){return Nw.apply(Nw,arguments)},Lw=Zb({}.isPrototypeOf),Rw=Vb.Object,Mw=mw?function(e){return"symbol"==typeof e}:function(e){var t=lw("Symbol");return sw(t)&&Lw(t.prototype,Rw(e))},zw=Vb.String,Hw=function(e){try{return zw(e)}catch(t){return"Object"}},Vw=Vb.TypeError,$w=function(e){if(sw(e))return e;throw Vw(Hw(e)+" is not a function")},Uw=function(e,t){var n=e[t];return null==n?void 0:$w(n)},Ww=Vb.TypeError,Gw=Vb.TypeError,qw=Cw("toPrimitive"),Kw=function(e){var t=function(e){if(!Ow(e)||Mw(e))return e;var t,n=Uw(e,qw);if(n){if(t=Iw(n,e,"string"),!Ow(t)||Mw(t))return t;throw Gw("Can't convert object to primitive value")}return function(e){var t,n;if(sw(t=e.toString)&&!Ow(n=Iw(t,e)))return n;if(sw(t=e.valueOf)&&!Ow(n=Iw(t,e)))return n;throw Ww("Can't convert object to primitive value")}(e)}(e);return Mw(t)?t:t+""},Yw=Vb.TypeError,Xw=Object.defineProperty,Zw={f:Aw?Xw:function(e,t,n){if(jw(e),t=Kw(t),jw(n),Tw)try{return Xw(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Yw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Jw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qw=Aw?function(e,t,n){return Zw.f(e,t,Jw(1,n))}:function(e,t,n){return e[t]=n,e},eE=Zb(Function.toString);sw(Wb.inspectSource)||(Wb.inspectSource=function(e){return eE(e)});var tE,nE,rE,oE=Wb.inspectSource,iE=Vb.WeakMap,aE=sw(iE)&&/native code/.test(oE(iE)),uE=Gb("keys"),sE=function(e){return uE[e]||(uE[e]=uw(e))},lE={},cE=Vb.TypeError,fE=Vb.WeakMap;if(aE||Wb.state){var dE=Wb.state||(Wb.state=new fE),pE=Zb(dE.get),hE=Zb(dE.has),gE=Zb(dE.set);tE=function(e,t){if(hE(dE,e))throw new cE("Object already initialized");return t.facade=e,gE(dE,e,t),t},nE=function(e){return pE(dE,e)||{}},rE=function(e){return hE(dE,e)}}else{var vE=sE("state");lE[vE]=!0,tE=function(e,t){if(rw(e,vE))throw new cE("Object already initialized");return t.facade=e,Qw(e,vE,t),t},nE=function(e){return rw(e,vE)?e[vE]:{}},rE=function(e){return rw(e,vE)}}var yE={set:tE,get:nE,has:rE,enforce:function(e){return rE(e)?nE(e):tE(e,{})},getterFor:function(e){return function(t){var n;if(!Ow(t)||(n=nE(t)).type!==e)throw cE("Incompatible receiver, "+e+" required");return n}}},mE=Function.prototype,bE=Aw&&Object.getOwnPropertyDescriptor,wE=rw(mE,"name"),EE={EXISTS:wE,PROPER:wE&&"something"===function(){}.name,CONFIGURABLE:wE&&(!Aw||Aw&&bE(mE,"name").configurable)},DE=Rb(function(e){var t=EE.CONFIGURABLE,n=yE.get,r=yE.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;sw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!rw(i,"name")||t&&i.name!==f)&&Qw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Vb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Qw(e,n,i)):l?e[n]=i:Ub(n,i)})(Function.prototype,"toString",function(){return sw(this)&&n(this).source||oE(this)})}),CE=Zb({}.toString),xE=Zb("".slice),SE=function(e){return xE(CE(e),8,-1)},AE=Cw("toStringTag"),OE=Vb.Object,kE="Arguments"==SE(function(){return arguments}()),BE=Sw?SE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=OE(e),AE))?n:kE?SE(t):"Object"==(r=SE(t))&&sw(t.callee)?"Arguments":r},FE=Sw?{}.toString:function(){return"[object "+BE(this)+"]"};Sw||DE(Object.prototype,"toString",FE,{unsafe:!0});var TE={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_E=Fw("span").classList,PE=_E&&_E.constructor&&_E.constructor.prototype,jE=PE===Object.prototype?void 0:PE,NE=Zb(Zb.bind),IE=function(e,t){return $w(e),void 0===t?e:NE?NE(e,t):function(){return e.apply(t,arguments)}},LE=Vb.Object,RE=Zb("".split),ME=vw(function(){return!LE("z").propertyIsEnumerable(0)})?function(e){return"String"==SE(e)?RE(e,""):LE(e)}:LE,zE=Math.ceil,HE=Math.floor,VE=function(e){var t=+e;return t!=t||0===t?0:(t>0?HE:zE)(t)},$E=Math.min,UE=function(e){return e>0?$E(VE(e),9007199254740991):0},WE=function(e){return UE(e.length)},GE=Array.isArray||function(e){return"Array"==SE(e)},qE=function(){},KE=[],YE=lw("Reflect","construct"),XE=/^\s*(?:class|function)\b/,ZE=Zb(XE.exec),JE=!XE.exec(qE),QE=function(e){if(!sw(e))return!1;try{return YE(qE,KE,e),!0}catch(t){return!1}},eD=!YE||vw(function(){var e;return QE(QE.call)||!QE(Object)||!QE(function(){e=!0})||e})?function(e){if(!sw(e))return!1;switch(BE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return JE||!!ZE(XE,oE(e))}:QE,tD=Cw("species"),nD=Vb.Array,rD=function(e,t){return new(GE(n=e)&&(r=n.constructor,(eD(r)&&(r===nD||GE(r.prototype))||Ow(r)&&null===(r=r[tD]))&&(r=void 0)),void 0===r?nD:r)(0===t?0:t);var n,r},oD=Zb([].push),iD=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=tw(s),g=ME(h),v=IE(l,c),y=WE(g),m=0,b=f||rD,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:oD(w,d)}else switch(e){case 4:return!1;case 7:oD(w,d)}return i?-1:r||o?o:w}},aD={forEach:iD(0),map:iD(1),filter:iD(2),find:iD(5),findIndex:iD(6)},uD=function(e,t){var n=[][e];return!!n&&vw(function(){n.call(null,t||function(){throw 1},1)})},sD=aD.forEach,lD=uD("forEach")?[].forEach:function(e){return sD(this,e,arguments.length>1?arguments[1]:void 0)},cD=function(e){if(e&&e.forEach!==lD)try{Qw(e,"forEach",lD)}catch(t){e.forEach=lD}};for(var fD in TE)TE[fD]&&cD(Vb[fD]&&Vb[fD].prototype);cD(jE);var dD={}.propertyIsEnumerable,pD=Object.getOwnPropertyDescriptor,hD=pD&&!dD.call({1:2},1)?function(e){var t=pD(this,e);return!!t&&t.enumerable}:dD,gD={f:hD},vD=function(e){return ME(Qb(e))},yD=Object.getOwnPropertyDescriptor,mD={f:Aw?yD:function(e,t){if(e=vD(e),t=Kw(t),Tw)try{return yD(e,t)}catch(n){}if(rw(e,t))return Jw(!Iw(gD.f,e,t),e[t])}},bD=Math.max,wD=Math.min,ED=function(e,t){var n=VE(e);return n<0?bD(n+t,0):wD(n,t)},DD=function(e){return function(t,n,r){var o,i=vD(t),a=WE(i),u=ED(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},CD={includes:DD(!0),indexOf:DD(!1)},xD=CD.indexOf,SD=Zb([].push),AD=function(e,t){var n,r=vD(e),o=0,i=[];for(n in r)!rw(lE,n)&&rw(r,n)&&SD(i,n);for(;t.length>o;)rw(r,n=t[o++])&&(~xD(i,n)||SD(i,n));return i},OD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kD=OD.concat("length","prototype"),BD={f:Object.getOwnPropertyNames||function(e){return AD(e,kD)}},FD={f:Object.getOwnPropertySymbols},TD=Zb([].concat),_D=lw("Reflect","ownKeys")||function(e){var t=BD.f(jw(e)),n=FD.f;return n?TD(t,n(e)):t},PD=function(e,t){for(var n=_D(t),r=Zw.f,o=mD.f,i=0;i<n.length;i++){var a=n[i];rw(e,a)||r(e,a,o(t,a))}},jD=/#|\.prototype\./,ND=function(e,t){var n=LD[ID(e)];return n==MD||n!=RD&&(sw(t)?vw(t):!!t)},ID=ND.normalize=function(e){return String(e).replace(jD,".").toLowerCase()},LD=ND.data={},RD=ND.NATIVE="N",MD=ND.POLYFILL="P",zD=ND,HD=mD.f,VD=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Vb:l?Vb[u]||Ub(u,{}):(Vb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=HD(n,r))&&a.value:n[r],!zD(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;PD(i,o)}(e.sham||o&&o.sham)&&Qw(i,"sham",!0),DE(n,r,i,e)}},$D=Object.keys||function(e){return AD(e,OD)},UD=vw(function(){$D(1)});
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function WD(e){return"[object Object]"===Object.prototype.toString.call(e)}VD({target:"Object",stat:!0,forced:UD},{keys:function(e){return $D(tw(e))}});var GD={isHistory(e){return!1!==WD(t=e)&&(void 0===(n=t.constructor)||!1!==WD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Gf.isOperationList(e.redos[0]))&&(0===e.undos.length||Gf.isOperationList(e.undos[0]));var t,n,r}},qD=new WeakMap,KD=new WeakMap,YD={isHistoryEditor:e=>GD.isHistory(e.history)&&Rf.isEditor(e),isMerging:e=>KD.get(e),isSaving:e=>qD.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=YD.isMerging(e);KD.set(e,!1),t(),KD.set(e,n)},withoutSaving(e,t){var n=YD.isSaving(e);qD.set(e,!1),t(),qD.set(e,n)}},XD=Vb.String,ZD=function(e){if("Symbol"===BE(e))throw TypeError("Cannot convert a Symbol value to a string");return XD(e)},JD=function(){var e=jw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},QD=EE.PROPER,eC=RegExp.prototype,tC=eC.toString,nC=Zb(JD),rC=vw(function(){return"/a/b"!=tC.call({source:"a",flags:"b"})}),oC=QD&&"toString"!=tC.name;(rC||oC)&&DE(RegExp.prototype,"toString",function(){var e=jw(this),t=ZD(e.source),n=e.flags;return"/"+t+"/"+ZD(void 0===n&&Lw(eC,e)&&!("flags"in eC)?nC(e):n)},{unsafe:!0});var iC,aC=Aw?Object.defineProperties:function(e,t){jw(e);for(var n,r=vD(t),o=$D(t),i=o.length,a=0;i>a;)Zw.f(e,n=o[a++],r[n]);return e},uC=lw("document","documentElement"),sC=sE("IE_PROTO"),lC=function(){},cC=function(e){return"<script>"+e+"<\/script>"},fC=function(e){e.write(cC("")),e.close();var t=e.parentWindow.Object;return e=null,t},dC=function(){try{iC=new ActiveXObject("htmlfile")}catch(r){}var e,t;dC="undefined"!=typeof document?document.domain&&iC?fC(iC):((t=Fw("iframe")).style.display="none",uC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(cC("document.F=Object")),e.close(),e.F):fC(iC);for(var n=OD.length;n--;)delete dC.prototype[OD[n]];return dC()};lE[sC]=!0;var pC=Object.create||function(e,t){var n;return null!==e?(lC.prototype=jw(e),n=new lC,lC.prototype=null,n[sC]=e):n=dC(),void 0===t?n:aC(n,t)},hC=Cw("unscopables"),gC=Array.prototype;null==gC[hC]&&Zw.f(gC,hC,{configurable:!0,value:pC(null)});var vC=function(e){gC[hC][e]=!0},yC=CD.includes;VD({target:"Array",proto:!0},{includes:function(e){return yC(this,e,arguments.length>1?arguments[1]:void 0)}}),vC("includes");var mC=Cw("match"),bC=function(e){var t;return Ow(e)&&(void 0!==(t=e[mC])?!!t:"RegExp"==SE(e))},wC=Vb.TypeError,EC=function(e){if(bC(e))throw wC("The method doesn't accept regular expressions");return e},DC=Cw("match"),CC=function(e){var t=/./;try{"/./"[e](t)}catch(cP){try{return t[DC]=!1,"/./"[e](t)}catch(n){}}return!1},xC=Zb("".indexOf);VD({target:"String",proto:!0,forced:!CC("includes")},{includes:function(e){return!!~xC(ZD(Qb(this)),ZD(EC(e)),arguments.length>1?arguments[1]:void 0)}});var SC=/"/g,AC=Zb("".replace);VD({target:"String",proto:!0,forced:vw(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ZD(Qb(this)),r="<a",(r+=' name="'+AC(ZD(t),SC,""")+'"')+">"+n+"</a>";var t,n,r}});var OC=function(e,t,n){var r,o;jw(e);try{if(!(r=Uw(e,"return"))){if("throw"===t)throw n;return n}r=Iw(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return jw(r),n},kC=function(e,t,n,r){try{return r?t(jw(n)[0],n[1]):t(n)}catch(o){OC(e,"throw",o)}},BC={},FC=Cw("iterator"),TC=Array.prototype,_C=function(e){return void 0!==e&&(BC.Array===e||TC[FC]===e)},PC=function(e,t,n){var r=Kw(t);r in e?Zw.f(e,r,Jw(0,n)):e[r]=n},jC=Cw("iterator"),NC=function(e){if(null!=e)return Uw(e,jC)||Uw(e,"@@iterator")||BC[BE(e)]},IC=Vb.TypeError,LC=function(e,t){var n=arguments.length<2?NC(e):t;if($w(n))return jw(Iw(n,e));throw IC(Hw(e)+" is not iterable")},RC=Vb.Array,MC=Cw("iterator"),zC=!1;try{var HC=0,VC={next:function(){return{done:!!HC++}},return:function(){zC=!0}};VC[MC]=function(){return this},Array.from(VC,function(){throw 2})}catch(Kge){}var $C=function(e,t){if(!zC)return!1;var n=!1;try{var r={};r[MC]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},UC=!$C(function(e){Array.from(e)});VD({target:"Array",stat:!0,forced:UC},{from:function(e){var t=tw(e),n=eD(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=IE(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=NC(t),p=0;if(!d||this==RC&&_C(d))for(a=WE(t),u=n?new this(a):RC(a);a>p;p++)f=i?o(t[p],p):t[p],PC(u,p,f);else for(c=(l=LC(t,d)).next,u=n?new this:[];!(s=Iw(c,l)).done;p++)f=i?kC(l,o,[s.value,p],!0):s.value,PC(u,p,f);return u.length=p,u}});var WC,GC,qC,KC=Zb("".charAt),YC=Zb("".charCodeAt),XC=Zb("".slice),ZC={charAt:function(e){return function(t,n){var r,o,i=ZD(Qb(t)),a=VE(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=YC(i,a))<55296||r>56319||a+1===u||(o=YC(i,a+1))<56320||o>57343?e?KC(i,a):r:e?XC(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},JC=!vw(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),QC=sE("IE_PROTO"),ex=Vb.Object,tx=ex.prototype,nx=JC?ex.getPrototypeOf:function(e){var t=tw(e);if(rw(t,QC))return t[QC];var n=t.constructor;return sw(n)&&t instanceof n?n.prototype:t instanceof ex?tx:null},rx=Cw("iterator"),ox=!1;[].keys&&("next"in(qC=[].keys())?(GC=nx(nx(qC)))!==Object.prototype&&(WC=GC):ox=!0);var ix=null==WC||vw(function(){var e={};return WC[rx].call(e)!==e});ix&&(WC={}),sw(WC[rx])||DE(WC,rx,function(){return this});var ax={IteratorPrototype:WC,BUGGY_SAFARI_ITERATORS:ox},ux=Zw.f,sx=Cw("toStringTag"),lx=function(e,t,n){e&&!rw(e=n?e:e.prototype,sx)&&ux(e,sx,{configurable:!0,value:t})},cx=ax.IteratorPrototype,fx=function(){return this},dx=Vb.String,px=Vb.TypeError,hx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Zb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return jw(n),function(e){if("object"==typeof e||sw(e))return e;throw px("Can't set "+dx(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),gx=EE.PROPER,vx=EE.CONFIGURABLE,yx=ax.IteratorPrototype,mx=ax.BUGGY_SAFARI_ITERATORS,bx=Cw("iterator"),wx=function(){return this},Ex=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=pC(cx,{next:Jw(1,s)}),lx(u,l,!1),BC[l]=fx;var c,f,d,p=function(e){if(e===o&&m)return m;if(!mx&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[bx]||v["@@iterator"]||o&&v[o],m=!mx&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=nx(b.call(new e)))!==Object.prototype&&c.next&&(nx(c)!==yx&&(hx?hx(c,yx):sw(c[bx])||DE(c,bx,wx)),lx(c,h,!0)),gx&&"values"==o&&y&&"values"!==y.name&&(vx?Qw(v,"name","values"):(g=!0,m=function(){return Iw(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(mx||g||!(d in v))&&DE(v,d,f[d]);else VD({target:t,proto:!0,forced:mx||g},f);return v[bx]!==m&&DE(v,bx,m,{name:o}),BC[t]=m,f},Dx=ZC.charAt,Cx=yE.set,xx=yE.getterFor("String Iterator");Ex(String,"String",function(e){Cx(this,{type:"String Iterator",string:ZD(e),index:0})},function(){var e,t=xx(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Dx(n,r),t.index+=e.length,{value:e,done:!1})});var Sx,Ax=mD.f,Ox=Zb("".endsWith),kx=Zb("".slice),Bx=Math.min,Fx=CC("endsWith"),Tx=!(Fx||(Sx=Ax(String.prototype,"endsWith"),!Sx||Sx.writable));VD({target:"String",proto:!0,forced:!Tx&&!Fx},{endsWith:function(e){var t=ZD(Qb(this));EC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Bx(UE(n),r),i=ZD(e);return Ox?Ox(t,i,o):kx(t,o-i.length,o)===i}});var _x=Zb([].join),Px=ME!=Object,jx=uD("join",",");VD({target:"Array",proto:!0,forced:Px||!jx},{join:function(e){return _x(vD(this),void 0===e?",":e)}});var Nx=Cw("species"),Ix=function(e){return gw>=51||!vw(function(){var t=[];return(t.constructor={})[Nx]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Lx=aD.map,Rx=Ix("map");VD({target:"Array",proto:!0,forced:!Rx},{map:function(e){return Lx(this,e,arguments.length>1?arguments[1]:void 0)}});var Mx=Vb.RegExp,zx=vw(function(){var e=Mx("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),Hx=zx||vw(function(){return!Mx("a","y").sticky}),Vx={BROKEN_CARET:zx||vw(function(){var e=Mx("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:Hx,UNSUPPORTED_Y:zx},$x=Vb.RegExp,Ux=vw(function(){var e=$x(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),Wx=Vb.RegExp,Gx=vw(function(){var e=Wx("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),qx=yE.get,Kx=Gb("native-string-replace",String.prototype.replace),Yx=RegExp.prototype.exec,Xx=Yx,Zx=Zb("".charAt),Jx=Zb("".indexOf),Qx=Zb("".replace),eS=Zb("".slice),tS=function(){var e=/a/,t=/b*/g;return Iw(Yx,e,"a"),Iw(Yx,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),nS=Vx.BROKEN_CARET,rS=void 0!==/()??/.exec("")[1];(tS||rS||nS||Ux||Gx)&&(Xx=function(e){var t,n,r,o,i,a,u,s=this,l=qx(s),c=ZD(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Iw(Xx,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=nS&&s.sticky,h=Iw(JD,s),g=s.source,v=0,y=c;if(p&&(h=Qx(h,"y",""),-1===Jx(h,"g")&&(h+="g"),y=eS(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Zx(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),rS&&(n=new RegExp("^"+g+"$(?!\\s)",h)),tS&&(r=s.lastIndex),o=Iw(Yx,p?n:s,y),p?o?(o.input=eS(o.input,v),o[0]=eS(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:tS&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),rS&&o&&o.length>1&&Iw(Kx,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=pC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var oS=Xx;VD({target:"RegExp",proto:!0,forced:/./.exec!==oS},{exec:oS});var iS=Function.prototype,aS=iS.apply,uS=iS.bind,sS=iS.call,lS="object"==typeof Reflect&&Reflect.apply||(uS?sS.bind(aS):function(){return sS.apply(aS,arguments)}),cS=Cw("species"),fS=RegExp.prototype,dS=function(e,t,n,r){var o=Cw(e),i=!vw(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=i&&!vw(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[cS]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t});if(!i||!a||n){var u=Zb(/./[o]),s=t(o,""[e],function(e,t,n,r,o){var a=Zb(e),s=t.exec;return s===oS||s===fS.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});DE(String.prototype,e,s[0]),DE(fS,o,s[1])}r&&Qw(fS[o],"sham",!0)},pS=ZC.charAt,hS=function(e,t,n){return t+(n?pS(e,t).length:1)},gS=Math.floor,vS=Zb("".charAt),yS=Zb("".replace),mS=Zb("".slice),bS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wS=/\$([$&'`]|\d{1,2})/g,ES=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=wS;return void 0!==o&&(o=tw(o),s=bS),yS(i,s,function(i,s){var l;switch(vS(s,0)){case"$":return"$";case"&":return e;case"`":return mS(t,0,n);case"'":return mS(t,a);case"<":l=o[mS(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=gS(c/10);return 0===f?i:f<=u?void 0===r[f-1]?vS(s,1):r[f-1]+vS(s,1):i}l=r[c-1]}return void 0===l?"":l})},DS=Vb.TypeError,CS=function(e,t){var n=e.exec;if(sw(n)){var r=Iw(n,e,t);return null!==r&&jw(r),r}if("RegExp"===SE(e))return Iw(oS,e,t);throw DS("RegExp#exec called on incompatible receiver")},xS=Cw("replace"),SS=Math.max,AS=Math.min,OS=Zb([].concat),kS=Zb([].push),BS=Zb("".indexOf),FS=Zb("".slice),TS="$0"==="a".replace(/./,"$0"),_S=!!/./[xS]&&""===/./[xS]("a","$0");dS("replace",function(e,t,n){var r=_S?"$":"$0";return[function(e,n){var r=Qb(this),o=null==e?void 0:Uw(e,xS);return o?Iw(o,e,r,n):Iw(t,ZD(r),e,n)},function(e,o){var i=jw(this),a=ZD(e);if("string"==typeof o&&-1===BS(o,r)&&-1===BS(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=sw(o);s||(o=ZD(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=CS(i,a);if(null===d)break;if(kS(f,d),!l)break;""===ZD(d[0])&&(i.lastIndex=hS(a,UE(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=ZD((d=f[v])[0]),m=SS(AS(VE(d.index),a.length),0),b=[],w=1;w<d.length;w++)kS(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=OS([y],b,m,a);void 0!==E&&kS(D,E);var C=ZD(lS(o,void 0,D))}else C=ES(y,a,m,b,E,o);m>=g&&(h+=FS(a,g,m)+C,g=m+y.length)}return h+FS(a,g)}]},!!vw(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!TS||_S);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var PS=function(e,t){return(PS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function jS(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}PS(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var NS=function(){return NS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NS.apply(this,arguments)};function IS(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function LS(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function RS(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var MS=0,zS=function(){this.id=""+MS++},HS=yE.set,VS=yE.getterFor("Array Iterator"),$S=Ex(Array,"Array",function(e,t){HS(this,{type:"Array Iterator",target:vD(e),index:0,kind:t})},function(){var e=VS(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");BC.Arguments=BC.Array,vC("keys"),vC("values"),vC("entries");var US=function(e,t,n){for(var r in t)DE(e,r,t[r],n);return e},WS=Vb.Array,GS=Math.max,qS=function(e,t,n){for(var r=WE(e),o=ED(t,r),i=ED(void 0===n?r:n,r),a=WS(GS(i-o,0)),u=0;o<i;o++,u++)PC(a,u,e[o]);return a.length=u,a},KS=BD.f,YS="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],XS={f:function(e){return YS&&"Window"==SE(e)?function(e){try{return KS(e)}catch(t){return qS(YS)}}(e):KS(vD(e))}},ZS=vw(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),JS=Object.isExtensible,QS=vw(function(){JS(1)})||ZS?function(e){return!!Ow(e)&&(!ZS||"ArrayBuffer"!=SE(e))&&(!JS||JS(e))}:JS,eA=!vw(function(){return Object.isExtensible(Object.preventExtensions({}))}),tA=Rb(function(e){var t=Zw.f,n=!1,r=uw("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=BD.f,t=Zb([].splice),o={};o[r]=1,e(o).length&&(BD.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},VD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:XS.f}))},fastKey:function(e,t){if(!Ow(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!rw(e,r)){if(!QS(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!rw(e,r)){if(!QS(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return eA&&n&&QS(e)&&!rw(e,r)&&i(e),e}};lE[r]=!0}),nA=Vb.TypeError,rA=function(e,t){this.stopped=e,this.result=t},oA=rA.prototype,iA=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=IE(t,c),g=function(e){return r&&OC(r,"normal",e),new rA(!0,e)},v=function(e){return f?(jw(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=NC(e)))throw nA(Hw(e)+" is not iterable");if(_C(o)){for(i=0,a=WE(e);a>i;i++)if((u=v(e[i]))&&Lw(oA,u))return u;return new rA(!1)}r=LC(e,o)}for(s=r.next;!(l=Iw(s,r)).done;){try{u=v(l.value)}catch(y){OC(r,"throw",y)}if("object"==typeof u&&u&&Lw(oA,u))return u}return new rA(!1)},aA=Vb.TypeError,uA=function(e,t){if(Lw(t,e))return e;throw aA("Incorrect invocation")},sA=function(e,t,n){var r,o;return hx&&sw(r=t.constructor)&&r!==n&&Ow(o=r.prototype)&&o!==n.prototype&&hx(e,o),e},lA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Vb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Zb(u[e]);DE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Ow(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Ow(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Ow(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(zD(e,!sw(a)||!(o||u.forEach&&!vw(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),tA.enable();else if(zD(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=vw(function(){f.has(1)}),h=$C(function(e){new a(e)}),g=!o&&vw(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){uA(e,u);var n=sA(new a,e,s);return null!=t&&iA(t,n[i],{that:n,AS_ENTRIES:r}),n})).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,VD({global:!0,forced:s!=a},l),lx(s,e),o||n.setStrong(s,e,r),s},cA=tA.getWeakData,fA=yE.set,dA=yE.getterFor,pA=aD.find,hA=aD.findIndex,gA=Zb([].splice),vA=0,yA=function(e){return e.frozen||(e.frozen=new mA)},mA=function(){this.entries=[]},bA=function(e,t){return pA(e.entries,function(e){return e[0]===t})};mA.prototype={get:function(e){var t=bA(this,e);if(t)return t[1]},has:function(e){return!!bA(this,e)},set:function(e,t){var n=bA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=hA(this.entries,function(t){return t[0]===e});return~t&&gA(this.entries,t,1),!!~t}};var wA,EA={getConstructor:function(e,t,n,r){var o=e(function(e,o){uA(e,i),fA(e,{type:t,id:vA++,frozen:void 0}),null!=o&&iA(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=dA(t),u=function(e,t,n){var r=a(e),o=cA(jw(t),!0);return!0===o?yA(r).set(t,n):o[r.id]=n,e};return US(i,{delete:function(e){var t=a(this);if(!Ow(e))return!1;var n=cA(e);return!0===n?yA(t).delete(e):n&&rw(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Ow(e))return!1;var n=cA(e);return!0===n?yA(t).has(e):n&&rw(n,t.id)}}),US(i,n?{get:function(e){var t=a(this);if(Ow(e)){var n=cA(e);return!0===n?yA(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},DA=yE.enforce,CA=!Vb.ActiveXObject&&"ActiveXObject"in Vb,xA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SA=lA("WeakMap",xA,EA);if(aE&&CA){wA=EA.getConstructor(xA,"WeakMap",!0),tA.enable();var AA=SA.prototype,OA=Zb(AA.delete),kA=Zb(AA.has),BA=Zb(AA.get),FA=Zb(AA.set);US(AA,{delete:function(e){if(Ow(e)&&!QS(e)){var t=DA(this);return t.frozen||(t.frozen=new wA),OA(this,e)||t.frozen.delete(e)}return OA(this,e)},has:function(e){if(Ow(e)&&!QS(e)){var t=DA(this);return t.frozen||(t.frozen=new wA),kA(this,e)||t.frozen.has(e)}return kA(this,e)},get:function(e){if(Ow(e)&&!QS(e)){var t=DA(this);return t.frozen||(t.frozen=new wA),kA(this,e)?BA(this,e):t.frozen.get(e)}return BA(this,e)},set:function(e,t){if(Ow(e)&&!QS(e)){var n=DA(this);n.frozen||(n.frozen=new wA),kA(this,e)?FA(this,e,t):n.frozen.set(e,t)}else FA(this,e,t);return this}})}var TA=Cw("iterator"),_A=Cw("toStringTag"),PA=$S.values,jA=function(e,t){if(e){if(e[TA]!==PA)try{Qw(e,TA,PA)}catch(r){e[TA]=PA}if(e[_A]||Qw(e,_A,t),TE[t])for(var n in $S)if(e[n]!==$S[n])try{Qw(e,n,$S[n])}catch(r){e[n]=$S[n]}}};for(var NA in TE)jA(Vb[NA]&&Vb[NA].prototype,NA);jA(jE,"DOMTokenList");var IA=new WeakMap,LA=new WeakMap,RA=new WeakMap,MA=new WeakMap,zA=new WeakMap,HA=new WeakMap,VA=new WeakMap,$A=new WeakMap,UA=new WeakMap,WA=new WeakMap,GA=new WeakMap,qA=new WeakMap,KA=new WeakMap,YA=new WeakMap,XA=new WeakMap,ZA=new WeakMap,JA=new WeakMap,QA=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,oO=new WeakMap,iO=new WeakMap,aO=new WeakMap,uO=aD.find,sO=!0;"find"in[]&&Array(1).find(function(){sO=!1}),VD({target:"Array",proto:!0,forced:sO},{find:function(e){return uO(this,e,arguments.length>1?arguments[1]:void 0)}}),vC("find"),VD({global:!0},{globalThis:Vb});const lO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];th&&(zp.fn.css=th),uh&&(zp.fn.append=uh),Hp&&(zp.fn.addClass=Hp),Vp&&(zp.fn.removeClass=Vp),$p&&(zp.fn.hasClass=$p),Kp&&(zp.fn.on=Kp),mh&&(zp.fn.focus=mh),Up&&(zp.fn.attr=Up),Wp&&(zp.fn.removeAttr=Wp),Qp&&(zp.fn.hide=Qp),eh&&(zp.fn.show=eh),Jp&&(zp.fn.offset=Jp),Xp&&(zp.fn.width=Xp),Zp&&(zp.fn.height=Zp),lh&&(zp.fn.parent=lh),ch&&(zp.fn.parents=ch),ah&&(zp.fn.is=ah),Gp&&(zp.fn.dataset=Gp),qp&&(zp.fn.val=qp),ih&&(zp.fn.text=ih),oh&&(zp.fn.html=oh),dh&&(zp.fn.children=dh),ph&&(zp.fn.remove=ph),fh&&(zp.fn.find=fh),nh&&(zp.fn.each=nh),hh&&(zp.fn.empty=hh);var cO,fO,dO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},pO=function(e){return hO(e)&&1===e.nodeType},hO=function(e){var t=dO(e);return!!t&&e instanceof t.Node},gO=function(e){var t=e&&e.anchorNode&&dO(e.anchorNode);return!!t&&e instanceof t.Selection},vO=function(e){return hO(e)&&3===e.nodeType},yO=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},mO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(hO(r=i)&&8===r.nodeType||pO(i)&&0===i.childNodes.length||pO(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},bO=function(e,t,n){return LS(mO(e,t,n),1)[0]},wO=function e(t){var n,r,o="";if(vO(t)&&t.nodeValue)return t.nodeValue;if(pO(t)){try{for(var i=IS(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(De){n={error:De}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function EO(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||EO(o,t)}}function DO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==cO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(fO=cO||(cO={}))[fO.ELEMENT_NODE=1]="ELEMENT_NODE",fO[fO.TEXT_NODE=3]="TEXT_NODE",fO[fO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",fO[fO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",fO[fO.COMMENT_NODE=8]="COMMENT_NODE",fO[fO.DOCUMENT_NODE=9]="DOCUMENT_NODE",fO[fO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",fO[fO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var CO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),xO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),SO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),AO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),OO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),kO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),BO=!OO&&!AO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,FO={getWindow:function(e){var t=nO.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=tO.get(t);return n||(n=new zS,tO.set(t,n)),n},setNewKey:function(e){var t=new zS;tO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=XA.get(r);if(null==o){if(Rf.isEditor(r))return n;break}var i=YA.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=FO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return XA.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=FO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[FO.findPath(e,t)[0]];return $f.get(e,n)},toDOMNode:function(e,t){var n;if(Rf.isEditor(t))n=ZA.get(e);else{var r=FO.findKey(e,t);n=QA.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=FO.toDOMNode(e,e);try{r=pO(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=td.isBackward(t),i=FO.toDOMPoint(e,n),a=td.isCollapsed(t)?i:FO.toDOMPoint(e,r),u=FO.getWindow(e).document.createRange(),s=LS(o?a:i,2),l=s[0],c=s[1],f=LS(o?i:a,2),d=f[0],p=f[1],h=!!(pO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(pO(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=LS(Rf.node(e,t.path),1)[0],a=FO.toDOMNode(e,i);Rf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=IS(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=pO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?JA.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=FO.toSlateNode(e,t.target),u=FO.findPath(e,a);if(Rf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Rf.point(e,u,{edge:l?"start":"end"}),f=l?Rf.before(e,c):Rf.after(e,c);if(f)return Rf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return FO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((gO(t)?t.anchorNode:t.startContainer)&&(gO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=kO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=FO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:FO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return td.isExpanded(d)&&td.isForward(d)&&pO(i)&&Rf.void(e,{at:d.focus,mode:"highest"})&&(d=Rf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=LS(o?t:function(e){var t,n=LS(e,2),r=n[0],o=n[1];if(pO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=LS(mO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;pO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=bO(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=FO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();RS(RS([],LS(Ap(v.querySelectorAll("[data-slate-zero-width]")))),LS(Ap(v.querySelectorAll("[contenteditable=false]")))).forEach(function(e){e.parentNode.removeChild(e)}),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach(function(e){f-=e.textContent.length})):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||xO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=FO.toSlateNode(e,c);return{path:FO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Rf.hasPath(e,n.path)&&Rf.hasPath(e,r.path)},getNodeType:function(e){return _f.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return $f.string(e)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=Rf.nodes(e,{universal:!0});try{for(var i=IS(o),a=i.next();!a.done;a=i.next()){var u=LS(a.value,1)[0];_f.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=LS(Rf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=LS(Rf.nodes(e,{match:function(e){return sd.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=LS(Rf.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&LS(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Rf.isEnd(e,n.anchor,t)||Rf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=IA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return MA.get(e)||null},getHoverbar:function(e){return HA.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=FO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=IS(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Rf.nodes(e,{match:function(t){return!(!_f.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=IS(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];EO(FO.toDOMNode(e,h),function(e,t){var n=zp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)})}}}catch(g){r={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Rf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=IS(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(td.isExpanded(t))return!1;var n=FO.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Rf.node(e,t);if(null==n)return!1;var r=LS(n,1)[0].children;return 1===r.length&&""===r[0].text}},TO=1,_O={},PO={},jO=aD.filter,NO=Ix("filter");VD({target:"Array",proto:!0,forced:!NO},{filter:function(e){return jO(this,e,arguments.length>1?arguments[1]:void 0)}});var IO="\t\n\v\f\r \u2028\u2029\ufeff",LO=Zb("".replace),RO="["+IO+"]",MO=RegExp("^"+RO+RO+"*"),zO=RegExp(RO+RO+"*$"),HO={trim:function(e){return function(t){var n=ZD(Qb(t));return 1&e&&(n=LO(n,MO,"")),2&e&&(n=LO(n,zO,"")),n}}(3)},VO=EE.PROPER,$O=HO.trim;VD({target:"String",proto:!0,forced:function(e){return vw(function(){return!!IO[e]()||"
"!=="
"[e]()||VO&&IO[e].name!==e})}("trim")},{trim:function(){return $O(this)}});var UO=[],WO={};function GO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var qO,KO,YO,XO,ZO=Vb.Promise,JO=Cw("species"),QO=function(e){var t=lw(e),n=Zw.f;Aw&&t&&!t[JO]&&n(t,JO,{configurable:!0,get:function(){return this}})},ek=Vb.TypeError,tk=Cw("species"),nk=function(e,t){var n,r=jw(e).constructor;return void 0===r||null==(n=jw(r)[tk])?t:function(e){if(eD(e))return e;throw ek(Hw(e)+" is not a constructor")}(n)},rk=Zb([].slice),ok=/(?:ipad|iphone|ipod).*applewebkit/i.test(cw),ik="process"==SE(Vb.process),ak=Vb.setImmediate,uk=Vb.clearImmediate,sk=Vb.process,lk=Vb.Dispatch,ck=Vb.Function,fk=Vb.MessageChannel,dk=Vb.String,pk=0,hk={};try{qO=Vb.location}catch(Kge){}var gk=function(e){if(rw(hk,e)){var t=hk[e];delete hk[e],t()}},vk=function(e){return function(){gk(e)}},yk=function(e){gk(e.data)},mk=function(e){Vb.postMessage(dk(e),qO.protocol+"//"+qO.host)};ak&&uk||(ak=function(e){var t=rk(arguments,1);return hk[++pk]=function(){lS(sw(e)?e:ck(e),void 0,t)},KO(pk),pk},uk=function(e){delete hk[e]},ik?KO=function(e){sk.nextTick(vk(e))}:lk&&lk.now?KO=function(e){lk.now(vk(e))}:fk&&!ok?(XO=(YO=new fk).port2,YO.port1.onmessage=yk,KO=IE(XO.postMessage,XO)):Vb.addEventListener&&sw(Vb.postMessage)&&!Vb.importScripts&&qO&&"file:"!==qO.protocol&&!vw(mk)?(KO=mk,Vb.addEventListener("message",yk,!1)):KO="onreadystatechange"in Fw("script")?function(e){uC.appendChild(Fw("script")).onreadystatechange=function(){uC.removeChild(this),gk(e)}}:function(e){setTimeout(vk(e),0)});var bk,wk,Ek,Dk,Ck,xk,Sk,Ak,Ok={set:ak},kk=/ipad|iphone|ipod/i.test(cw)&&void 0!==Vb.Pebble,Bk=/web0s(?!.*chrome)/i.test(cw),Fk=mD.f,Tk=Ok.set,_k=Vb.MutationObserver||Vb.WebKitMutationObserver,Pk=Vb.document,jk=Vb.process,Nk=Vb.Promise,Ik=Fk(Vb,"queueMicrotask"),Lk=Ik&&Ik.value;Lk||(bk=function(){var e,t;for(ik&&(e=jk.domain)&&e.exit();wk;){t=wk.fn,wk=wk.next;try{t()}catch(n){throw wk?Dk():Ek=void 0,n}}Ek=void 0,e&&e.enter()},ok||ik||Bk||!_k||!Pk?!kk&&Nk&&Nk.resolve?((Sk=Nk.resolve(void 0)).constructor=Nk,Ak=IE(Sk.then,Sk),Dk=function(){Ak(bk)}):ik?Dk=function(){jk.nextTick(bk)}:(Tk=IE(Tk,Vb),Dk=function(){Tk(bk)}):(Ck=!0,xk=Pk.createTextNode(""),new _k(bk).observe(xk,{characterData:!0}),Dk=function(){xk.data=Ck=!Ck}));var Rk,Mk,zk,Hk,Vk=Lk||function(e){var t={fn:e,next:void 0};Ek&&(Ek.next=t),wk||(wk=t,Dk()),Ek=t},$k=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=$w(t),this.reject=$w(n)},Uk={f:function(e){return new $k(e)}},Wk=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Gk="object"==typeof window,qk=Ok.set,Kk=Cw("species"),Yk="Promise",Xk=yE.getterFor(Yk),Zk=yE.set,Jk=yE.getterFor(Yk),Qk=ZO&&ZO.prototype,eB=ZO,tB=Qk,nB=Vb.TypeError,rB=Vb.document,oB=Vb.process,iB=Uk.f,aB=iB,uB=!!(rB&&rB.createEvent&&Vb.dispatchEvent),sB=sw(Vb.PromiseRejectionEvent),lB=!1,cB=zD(Yk,function(){var e=oE(eB),t=e!==String(eB);if(!t&&66===gw)return!0;if(gw>=51&&/native code/.test(e))return!1;var n=new eB(function(e){e(1)}),r=function(e){e(function(){},function(){})};return(n.constructor={})[Kk]=r,!(lB=n.then(function(){})instanceof r)||!t&&Gk&&!sB}),fB=cB||!$C(function(e){eB.all(e).catch(function(){})}),dB=function(e){var t;return!(!Ow(e)||!sw(t=e.then))&&t},pB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Vk(function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&yB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(nB("Promise-chain cycle")):(u=dB(a))?Iw(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&gB(e)})}},hB=function(e,t,n){var r,o;uB?((r=rB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Vb.dispatchEvent(r)):r={promise:t,reason:n},!sB&&(o=Vb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Vb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},gB=function(e){Iw(qk,Vb,function(){var t,n=e.facade,r=e.value;if(vB(e)&&(t=Wk(function(){ik?oB.emit("unhandledRejection",r,n):hB("unhandledrejection",n,r)}),e.rejection=ik||vB(e)?2:1,t.error))throw t.value})},vB=function(e){return 1!==e.rejection&&!e.parent},yB=function(e){Iw(qk,Vb,function(){var t=e.facade;ik?oB.emit("rejectionHandled",t):hB("rejectionhandled",t,e.value)})},mB=function(e,t,n){return function(r){e(t,r,n)}},bB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,pB(e,!0))},wB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw nB("Promise can't be resolved itself");var r=dB(t);r?Vk(function(){var n={done:!1};try{Iw(r,t,mB(wB,n,e),mB(bB,n,e))}catch(o){bB(n,o,e)}}):(e.value=t,e.state=1,pB(e,!1))}catch(o){bB({done:!1},o,e)}}};if(cB&&(tB=(eB=function(e){uA(this,tB),$w(e),Iw(Rk,this);var t=Xk(this);try{e(mB(wB,t),mB(bB,t))}catch(n){bB(t,n)}}).prototype,(Rk=function(e){Zk(this,{type:Yk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=US(tB,{then:function(e,t){var n=Jk(this),r=n.reactions,o=iB(nk(this,eB));return o.ok=!sw(e)||e,o.fail=sw(t)&&t,o.domain=ik?oB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&pB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Mk=function(){var e=new Rk,t=Xk(e);this.promise=e,this.resolve=mB(wB,t),this.reject=mB(bB,t)},Uk.f=iB=function(e){return e===eB||e===zk?new Mk(e):aB(e)},sw(ZO)&&Qk!==Object.prototype)){Hk=Qk.then,lB||(DE(Qk,"then",function(e,t){var n=this;return new eB(function(e,t){Iw(Hk,n,e,t)}).then(e,t)},{unsafe:!0}),DE(Qk,"catch",tB.catch,{unsafe:!0}));try{delete Qk.constructor}catch(Kge){}hx&&hx(Qk,tB)}VD({global:!0,wrap:!0,forced:cB},{Promise:eB}),lx(eB,Yk,!1),QO(Yk),zk=lw(Yk),VD({target:Yk,stat:!0,forced:cB},{reject:function(e){var t=iB(this);return Iw(t.reject,void 0,e),t.promise}}),VD({target:Yk,stat:!0,forced:cB},{resolve:function(e){return function(e,t){if(jw(e),Ow(t)&&t.constructor===e)return t;var n=Uk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),VD({target:Yk,stat:!0,forced:fB},{all:function(e){var t=this,n=iB(t),r=n.resolve,o=n.reject,i=Wk(function(){var n=$w(t.resolve),i=[],a=0,u=1;iA(e,function(e){var s=a++,l=!1;u++,Iw(n,t,e).then(function(e){l||(l=!0,i[s]=e,--u||r(i))},o)}),--u||r(i)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=iB(t),r=n.reject,o=Wk(function(){var o=$w(t.resolve);iA(e,function(e){Iw(o,t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var EB=Vx.UNSUPPORTED_Y,DB=Math.min,CB=[].push,xB=Zb(/./.exec),SB=Zb(CB),AB=Zb("".slice);function OB(e){Promise.resolve().then(e)}function kB(e,t){return _f.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Rf.isVoid(t,e),u="";a||(u=i.map(function(e){return kB(e,t)}).join(""));var s=(WO[r]||GO)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||UO.forEach(function(t){return l=t(e,l)}),"string"==typeof s)return l;var c=s.prefix,f=void 0===c?"":c,d=s.suffix,p=void 0===d?"":d;return f&&(l=f+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=r.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™");var o=FO.getParentsNodes(t,e).some(function(e){return"pre"===FO.getNodeType(e)});if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=FO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return UO.forEach(function(t){return r=t(e,r)}),r}(e,t)}function BB(e){return"w-e-element-"+e}dS("split",function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=ZD(Qb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!bC(e))return Iw(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=Iw(oS,f,r))&&!((a=f.lastIndex)>c&&(SB(s,AB(r,c,i.index)),i.length>1&&i.index<r.length&&lS(CB,s,qS(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&xB(f,"")||SB(s,""):SB(s,AB(r,c)),s.length>o?qS(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Iw(t,this,e,n)}:t,[function(t,n){var o=Qb(this),i=null==t?void 0:Uw(t,e);return i?Iw(i,t,o,n):Iw(r,ZD(o),t,n)},function(e,o){var i=jw(this),a=ZD(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=nk(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(EB?"g":"y"),f=new s(EB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===CS(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=EB?0:h;var v,y=CS(f,EB?AB(a,h):a);if(null===y||(v=DB(UE(f.lastIndex+(EB?h:0)),a.length))===p)h=hS(a,h,l);else{if(SB(g,AB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(SB(g,y[m]),g.length===d)return g;h=p=v}}return SB(g,AB(a,p)),g}]},!!vw(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),EB);var FB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},TB=function(e,t,n){var r=FO.toDOMRange(e,t).getBoundingClientRect(),o=FO.toDOMRange(e,n).getBoundingClientRect();return FB(r,o)&&FB(o,r)},_B=["span","b","strong","i","em","s","strike","u","font","sub","sup"],PB=[],jB=[],NB={},IB=Zw.f,LB=BD.f,RB=yE.enforce,MB=Cw("match"),zB=Vb.RegExp,HB=zB.prototype,VB=Vb.SyntaxError,$B=Zb(JD),UB=Zb(HB.exec),WB=Zb("".charAt),GB=Zb("".replace),qB=Zb("".indexOf),KB=Zb("".slice),YB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,XB=/a/g,ZB=/a/g,JB=new zB(XB)!==XB,QB=Vx.MISSED_STICKY,eF=Vx.UNSUPPORTED_Y,tF=Aw&&(!JB||QB||Ux||Gx||vw(function(){return ZB[MB]=!1,zB(XB)!=XB||zB(ZB)==ZB||"/a/i"!=zB(XB,"i")}));if(zD("RegExp",tF)){for(var nF=function(e,t){var n,r,o,i,a,u,s=Lw(HB,this),l=bC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===nF)return e;if((l||Lw(HB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:$B(d))),e=void 0===e?"":ZD(e),t=void 0===t?"":ZD(t),d=e,Ux&&"dotAll"in XB&&(r=!!t&&qB(t,"s")>-1)&&(t=GB(t,/s/g,"")),n=t,QB&&"sticky"in XB&&(o=!!t&&qB(t,"y")>-1)&&eF&&(t=GB(t,/y/g,"")),Gx&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=WB(e,r)))t+=WB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:UB(YB,KB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||rw(a,c))throw new VB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=sA(zB(e,t),s?this:HB,nF),(r||o||f.length)&&(u=RB(a),r&&(u.dotAll=!0,u.raw=nF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=WB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+WB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Qw(a,"source",""===d?"(?:)":d)}catch(p){}return a},rF=function(e){e in nF||IB(nF,e,{configurable:!0,get:function(){return zB[e]},set:function(t){zB[e]=t}})},oF=LB(zB),iF=0;oF.length>iF;)rF(oF[iF++]);HB.constructor=nF,nF.prototype=HB,DE(Vb,"RegExp",nF)}QO("RegExp");var aF=new RegExp(String.fromCharCode(160),"g");function uF(e){return e.replace(aF," ")}function sF(e,t){var n=e.length;if(n){var r=e[n-1];if(sd.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function lF(e,t,n){return{type:"paragraph",children:[{text:zp(e).text().replace(/\s+/gm," ")}]}}function cF(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach(function(e){if(e.nodeType!==cO.ELEMENT_NODE)if(e.nodeType!==cO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=uF(r),sF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(sF(n,"\n")||n.push({text:"\n"}));var o=dF(zp(e),t);Array.isArray(o)?o.forEach(function(e){return n.push(e)}):n.push(o)}}),n)}(e,t),r=function(e){for(var t in NB)if(e[0].matches(t))return NB[t];return lF}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach(function(r){Rf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),jB.forEach(function(n){r=n(e[0],r,t)}))}),r}function fF(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=uF(n=n.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"'))};return jB.forEach(function(n){r=n(e[0],r,t)}),r}function dF(e,t){PB.forEach(function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=zp(r(e[0])))});var n=DO(e);return"span"===n?e.attr("data-w-e-type")?cF(e,t):fF(e,t):"code"===n?"pre"===DO(e.parent())?cF(e,t):fF(e,t):_B.includes(n)?fF(e,t):cF(e,t)}function pF(e,t,n){var r=zp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function hF(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map(function(e){return"<p>"+e+"</p>"}).join(""));var r=zp("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(t){var r=dF(zp(t),e);Array.isArray(r)?r.forEach(function(e){return n.push(e)}):n.push(r)}),n}var gF=Zw.f,vF=tA.fastKey,yF=yE.set,mF=yE.getterFor,bF={getConstructor:function(e,t,n,r){var o=e(function(e,o){uA(e,i),yF(e,{type:t,index:pC(null),first:void 0,last:void 0,size:0}),Aw||(e.size=0),null!=o&&iA(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=mF(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=vF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Aw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=vF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return US(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Aw?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Aw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=IE(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),US(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Aw&&gF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=mF(t),i=mF(r);Ex(e,t,function(e,t){yF(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),QO(t)}};lA("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bF);var wF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function EF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Ad.insertNodes(e,t,{mode:"highest"})}var DF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=LS(td.edges(n),2),o=r[0],i=r[1],a=Rf.void(t,{at:o.path}),u=Rf.void(t,{at:i.path});if(!td.isCollapsed(n)||a){var s=FO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)}),u){var f=LS(u,1)[0],d=s.cloneRange(),p=FO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach(function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),vO(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",wO(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=IS(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Ad.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},CF=function(e){return null!=e},xF={object:!0,function:!0,undefined:!0},SF=/^\s*class[\s{/}]/,AF=Function.prototype.toString,OF=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!function(e){if(!CF(t=e)||!hasOwnProperty.call(xF,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!SF.test(AF.call(e))},kF=function(e){return null!=e},BF=Object.keys,FF=function(){try{return Object.keys("primitive"),!0}catch(De){return!1}}()?Object.keys:function(e){return BF(kF(e)?Object(e):e)},TF=Math.max,_F=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=TF(arguments.length,2);for(e=Object(function(e){if(!kF(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)FF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},PF=Array.prototype.forEach,jF=Object.create,NF=function(e){var t=jF(null);return PF.call(arguments,function(e){kF(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)}),t},IF="razdwatrzy",LF=String.prototype.indexOf,RF="function"==typeof IF.contains&&!0===IF.contains("dwa")&&!1===IF.contains("foo")?String.prototype.contains:function(e){return LF.call(this,e,arguments[1])>-1},MF=Rb(function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],CF(e)?(n=RF.call(e,"c"),r=RF.call(e,"e"),o=RF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?_F(NF(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],CF(t)?OF(t)?CF(n)?OF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,CF(e)?(r=RF.call(e,"c"),o=RF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?_F(NF(i),a):a}}),zF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},HF=Rb(function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return zF(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return zF(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(zF(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:i},u={on:MF(n),once:MF(r),off:MF(o),emit:MF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a});function VF(e){var t=iO.get(e);return null==t&&(t=HF(),iO.set(e,t)),t}var $F=new WeakMap;function UF(e,t){var n=$F.get(e);null==n&&(n=new Set,$F.set(e,n)),n.add(t)}function WF(e){var t=FO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function GF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=WF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=FO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function qF(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=_f.isElement(t)&&e.isVoid(t),i=_f.isElement(t)&&e.isInline(t),a=eO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(lO.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=WF(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,D=l-y;if("bar"===n)return w.left=D+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?D>(m-f)/2?w.right=m-D+5+"px":w.left=D+f+5+"px":w.left="20px":w.left=D+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function KF(e,t){OB(function(){var n=WF(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var D=t.css("right"),C=parseInt(D.toString())-Math.abs(c);t.css("right",C+"px")}}})}var YF=Ix("slice"),XF=Cw("species"),ZF=Vb.Array,JF=Math.max;VD({target:"Array",proto:!0,forced:!YF},{slice:function(e,t){var n,r,o,i=vD(this),a=WE(i),u=ED(e,a),s=ED(void 0===t?a:t,a);if(GE(i)&&(n=i.constructor,(eD(n)&&(n===ZF||GE(n.prototype))||Ow(n)&&null===(n=n[XF]))&&(n=void 0),n===ZF||void 0===n))return rk(i,u,s);for(r=new(void 0===n?ZF:n)(JF(s-u,0)),o=0;u<s;u++,o++)u in i&&PC(r,o,i[u]);return r.length=o,r}});var QF=mD.f,eT=Zb("".startsWith),tT=Zb("".slice),nT=Math.min,rT=CC("startsWith"),oT=!rT&&!!function(){var e=QF(String.prototype,"startsWith");return e&&!e.writable}();VD({target:"String",proto:!0,forced:!oT&&!rT},{startsWith:function(e){var t=ZD(Qb(this));EC(e);var n=UE(nT(arguments.length>1?arguments[1]:void 0,t.length)),r=ZD(e);return eT?eT(t,r,n):tT(t,n,n+r.length)===r}});var iT=Object.assign,aT=Object.defineProperty,uT=Zb([].concat),sT=!iT||vw(function(){if(Aw&&1!==iT({b:1},iT(aT({},"a",{enumerable:!0,get:function(){aT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=iT({},e)[n]||$D(iT({},t)).join("")!=r})?function(e,t){for(var n=tw(e),r=arguments.length,o=1,i=FD.f,a=gD.f;r>o;)for(var u,s=ME(arguments[o++]),l=i?uT($D(s),i(s)):$D(s),c=l.length,f=0;c>f;)u=l[f++],Aw&&!Iw(a,s,u)||(n[u]=s[u]);return n}:iT;VD({target:"Object",stat:!0,forced:Object.assign!==sT},{assign:sT});var lT=["props","attrs","style","dataset","on","hook"];function cT(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach(function(t){var r,o,i=n[t];if("key"!==t){if(!lT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=vv(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i}),o.length>0&&o.forEach(function(e){"string"!=typeof e&&cT(e)})}var fT=[],dT={};function pT(e,t,n){return Fg(n.isInline(e)?"span":"div",null,t)}function hT(e,t){return void 0===t&&(t=!1),Fg("span",{"data-slate-string":!0},t?e+"\n":e)}function gT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Fg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Fg("br",null):null)}function vT(e,t,n,r){return YA.set(e,t),XA.set(e,n),_f.isElement(e)?function(e,t){var n,r=FO.findKey(t,e),o=t.isInline(e),i=Rf.isVoid(t,e),a=BB(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=dT[s]||pT;n=i?null:c.map(function(n,r){return vT(n,r,e,t)});var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=LS($f.texts(e),1),g=LS(h[0],1)[0],v=Fg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},vT(g,0,e,t));d=Fg(p,{style:{position:"relative"}},d,v),YA.set(g,0),XA.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return fT.forEach(function(r){n=r(e,t)}),n}(e,d)),OB(function(){var t=yO(a);null!=t&&(QA.set(r,t),eO.set(e,t),JA.set(t,e))}),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=FO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=FO.findPath(n,e),a=o([e,i]),u=sd.decorations(e,a),s=u.map(function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=FO.findPath(o,n),u=qf.parent(a);if(Rf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?gT($f.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Rf.string(o,u)?""===i?gT():t&&"\n"===i.slice(-1)?hT(i,!0):hT(i):gT(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,fT.forEach(function(e){a=e(i,a)}),Fg("span",{"data-slate-leaf":!0},s=a)}),l="w-e-text-"+r.id,c=Fg("span",{"data-slate-node":"text",id:l,key:r.id},s);return OB(function(){var t=yO(l);null!=t&&(QA.set(r,t),eO.set(e,t),JA.set(t,e))}),c}(e,n,r)}function yT(e,t){var n,r=e.$scroll,o="w-e-textarea-"+e.id,i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),cg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map(function(e,n){var r=vT(e,n,t,t);return cT(r),r});var c=GA.get(e);if(null==c&&(c=!0),c){var f=function(e){return zp('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=sg([hg,Cg,kg,yg,Eg,dg]))(n,s),GA.set(e,!1),qA.set(e,p)}else{var d=KA.get(e),p=qA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=yO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=dO(n);h&&nO.set(t,h)}ZA.set(t,n),eO.set(t,n),JA.set(n,t),KA.set(e,s)}}function mT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function bT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function wT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return bT(n.overflowY,t)||bT(n.overflowX,t)||!!(o=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(r=e))&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}var r,o;return!1}function ET(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function DT(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!mT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;mT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&wT(f)&&!wT(document.documentElement)||null!=f&&wT(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,D=v.left,C="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,x="center"===i?D+m/2:"end"===i?w:D,S=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&D>=0&&E<=p&&w<=d&&b>=T&&E<=P&&D>=j&&w<=_)return S;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,H=0,V="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,$="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?C:"end"===o?C-p:"nearest"===o?ET(g,g+p,p,L,M,g+C,g+C+y,y):C-p/2,H="start"===i?x:"center"===i?x-d/2:"end"===i?x-d:ET(h,h+d,d,I,R,h+x,h+x+m,m),z=Math.max(0,z+g),H=Math.max(0,H+h);else{z="start"===o?C-T-L:"end"===o?C-P+M+$:"nearest"===o?ET(T,P,B,L,M+$,C,C+y,y):C-(T+B/2)+$/2,H="start"===i?x-j-I:"center"===i?x-(j+F/2)+V/2:"end"===i?x-_+R+V:ET(j,_,F,I,R+V,x,x+m,m);var U=O.scrollLeft,W=O.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+$))),x+=U-(H=Math.max(0,Math.min(U+H,O.scrollWidth-F+V)))}S.push({el:O,top:z,left:H})}return S}function CT(e){return e===Object(e)&&0!==Object.keys(e).length}function xT(e,t){return hO(t)&&FO.hasDOMNode(e,t,{editable:!0})}function ST(e,t){if(e.getConfig().readOnly)return!1;var n=AT(e,t)&&FO.toSlateNode(e,t);return Rf.isVoid(e,n)}function AT(e,t){return hO(t)&&FO.hasDOMNode(e,t)}function OT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=FO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=ZA.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=FO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&td.equals(l,r)){var c=!0;if(td.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||FO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&FO.toDOMRange(t,r);if(g){td.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n,r=!e.ownerDocument.documentElement.contains(e);if(CT(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:DT(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:CT(n)?n:{block:"start",inline:"nearest"};!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)})}(DT(e,o),o.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&xO&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=FO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var kT=new WeakMap,BT=new WeakMap,FT={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},TT={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},_T={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},PT=function(e){var t=FT[e],n=TT[e],r=_T[e],o=t&&Av(t),i=n&&Av(n),a=r&&Av(r);return function(e){return!(!o||!o(e))||!!(CO&&i&&i(e))||!(CO||!a||!a(e))}},jT={isBold:PT("bold"),isCompose:PT("compose"),isMoveBackward:PT("moveBackward"),isMoveForward:PT("moveForward"),isDeleteBackward:PT("deleteBackward"),isDeleteForward:PT("deleteForward"),isDeleteLineBackward:PT("deleteLineBackward"),isDeleteLineForward:PT("deleteLineForward"),isDeleteWordBackward:PT("deleteWordBackward"),isDeleteWordForward:PT("deleteWordForward"),isExtendBackward:PT("extendBackward"),isExtendForward:PT("extendForward"),isExtendLineBackward:PT("extendLineBackward"),isExtendLineForward:PT("extendLineForward"),isItalic:PT("italic"),isMoveLineBackward:PT("moveLineBackward"),isMoveLineForward:PT("moveLineForward"),isMoveWordBackward:PT("moveWordBackward"),isMoveWordForward:PT("moveWordForward"),isRedo:PT("redo"),isSplitBlock:PT("splitBlock"),isTransposeCharacter:PT("transposeCharacter"),isUndo:PT("undo"),isTab:PT("tab"),isSelectAll:PT("selectAll")};function NT(e){e.preventDefault()}var IT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(BO&&!o&&xT(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=LS(r.getTargetRanges(),1)[0];if(s){var l=FO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&td.equals(i,l)||Ad.select(n,l)}}if(i&&td.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Rf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Rf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Rf.deleteForward(n);break;case"deleteContentBackward":Rf.deleteBackward(n);break;case"deleteEntireSoftLine":Rf.deleteBackward(n,{unit:"line"}),Rf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Rf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Rf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Rf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Rf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Rf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Rf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Rf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!aO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Rf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&xT(n,r.target)){var a=FO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===FO.toDOMNode(n,n)||pO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&hO(u)&&FO.hasDOMNode(n,u)){var s=FO.toSlateNode(n,u);if(_f.isElement(s)&&!n.isVoid(s))return}if(SO){var l=a.getSelection();null==l||l.removeAllRanges()}rO.delete(n)}}}},focus:function(e,t,n){var r=FO.toDOMNode(n,n),o=FO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,xO&&e.target!==r?r.focus():rO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&AT(n,e.target)&&hO(e.target)){var r=FO.toSlateNode(n,e.target),o=FO.findPath(n,r);if(Rf.hasPath(n,o)&&$f.get(n,o)===r){var i=Rf.start(n,o),a=Rf.end(n,o),u=Rf.void(n,{at:i}),s=Rf.void(n,{at:a});if(u&&s&&qf.equals(u[1],s[1])){var l=Rf.range(n,i);Ad.select(n,l)}}}},compositionstart:function(e,t,n){if(xT(n,e.target)){var r=n.selection;if(r&&td.isExpanded(r)&&(Rf.deleteFragment(n),Promise.resolve().then(function(){OT(t,n,!0)})),r&&td.isCollapsed(r)){var o=FO.toDOMRange(n,r).startContainer,i=o.textContent||"";kT.set(n,i),BT.set(n,o)}t.isComposing=!0,a=t,(u=n).getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&(null===(s=a.$placeholder)||void 0===s||s.hide(),a.showPlaceholder=!1)}var a,u,s},compositionend:function(e,t,n){var r=e;if(xT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(kO||xO)&&FO.cleanExposedTexNodeInSelectionBlock(n);for(var i=td.isBackward(o)?o.focus:o.anchor,a=LS(Rf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=LS(Rf.node(n,i.path.slice(0,u+1)),1)[0];if(_f.isElement(s)&&((SO||xO)&&"link"===s.type||"code"===s.type)){FO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=FO.getLeftLengthOfMaxLength(n);c<l.length?(FO.toDOMRange(n,o).startContainer.textContent=kT.get(n)||"",c>0&&Rf.insertText(n,l.slice(0,c)),t.changeViewState()):Rf.insertText(n,l)}else Rf.insertText(n,l);SO||setTimeout(function(){var e=n.selection;if(null!=e){var t=BT.get(n);null!=t&&FO.toDOMRange(n,e).startContainer!==t&&(t.textContent=kT.get(n)||"")}})}}}},compositionupdate:function(e,t,n){xT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&xT(n,r.target)){if(function(e,t){var n=MA.get(e),r=n&&n.getMenus(),o=HA.get(e),i=o&&o.getMenus(),a=NS(NS({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Sv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),jT.isTab(r))return NT(r),void n.handleTab();if(jT.isRedo(r))return NT(r),void("function"==typeof n.redo&&n.redo());if(jT.isUndo(r))return NT(r),void("function"==typeof n.undo&&n.undo());if(jT.isMoveLineBackward(r))return NT(r),void Ad.move(n,{unit:"line",reverse:!0});if(jT.isMoveLineForward(r))return NT(r),void Ad.move(n,{unit:"line"});if(jT.isExtendLineBackward(r))return NT(r),void Ad.move(n,{unit:"line",edge:"focus",reverse:!0});if(jT.isExtendLineForward(r))return NT(r),void Ad.move(n,{unit:"line",edge:"focus"});if(jT.isMoveBackward(r))return NT(r),void(o&&td.isCollapsed(o)?Ad.move(n,{reverse:!0}):Ad.collapse(n,{edge:"start"}));if(jT.isMoveForward(r))return NT(r),void(o&&td.isCollapsed(o)?Ad.move(n):Ad.collapse(n,{edge:"end"}));if(jT.isMoveWordBackward(r))return NT(r),o&&td.isExpanded(o)&&Ad.collapse(n,{edge:"focus"}),void Ad.move(n,{unit:"word",reverse:!0});if(jT.isMoveWordForward(r))return NT(r),o&&td.isExpanded(o)&&Ad.collapse(n,{edge:"focus"}),void Ad.move(n,{unit:"word"});if(jT.isSelectAll(r))return NT(r),void n.selectAll();if(BO){if((kO||SO)&&o&&(jT.isDeleteBackward(r)||jT.isDeleteForward(r))&&td.isCollapsed(o)){var i=$f.parent(n,o.anchor.path);if(_f.isElement(i)&&Rf.isVoid(n,i)&&Rf.isInline(n,i))return r.preventDefault(),void Ad.delete(n,{unit:"block"})}}else{if(jT.isBold(r)||jT.isItalic(r)||jT.isTransposeCharacter(r))return void NT(r);if(jT.isSplitBlock(r))return NT(r),void Rf.insertBreak(n);if(jT.isDeleteBackward(r))return NT(r),void(o&&td.isExpanded(o)?Rf.deleteFragment(n,{direction:"backward"}):Rf.deleteBackward(n));if(jT.isDeleteForward(r))return NT(r),void(o&&td.isExpanded(o)?Rf.deleteFragment(n,{direction:"forward"}):Rf.deleteForward(n));if(jT.isDeleteLineBackward(r))return NT(r),void(o&&td.isExpanded(o)?Rf.deleteFragment(n,{direction:"backward"}):Rf.deleteBackward(n,{unit:"line"}));if(jT.isDeleteLineForward(r))return NT(r),void(o&&td.isExpanded(o)?Rf.deleteFragment(n,{direction:"forward"}):Rf.deleteForward(n,{unit:"line"}));if(jT.isDeleteWordBackward(r))return NT(r),void(o&&td.isExpanded(o)?Rf.deleteFragment(n,{direction:"backward"}):Rf.deleteBackward(n,{unit:"word"}));if(jT.isDeleteWordForward(r))return NT(r),void(o&&td.isExpanded(o)?Rf.deleteFragment(n,{direction:"forward"}):Rf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!BO&&!n.getConfig().readOnly&&xT(n,e.target)){e.preventDefault();var r=e.key;Rf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(xT(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&xT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(td.isExpanded(o))Rf.deleteFragment(n);else{var a=$f.parent(n,o.anchor.path);Rf.isVoid(n,a)&&Ad.delete(n)}}},paste:function(e,t,n){aO.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&xT(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void aO.set(n,!1);if(!BO||(r=o).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length){o.preventDefault();var a=o.clipboardData;null!=a&&n.insertData(a)}}},dragover:function(e,t,n){if(AT(n,e.target)){var r=FO.toSlateNode(n,e.target);Rf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(AT(n,r.target)&&!n.getConfig().readOnly){var o=FO.toSlateNode(n,r.target),i=FO.findPath(n,o);if(Rf.isVoid(n,o)||Rf.void(n,{at:i,voids:!0})){var a=Rf.range(n,i);Ad.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&AT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&AT(n,r.target)&&null!=o&&!(BO&&SO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=FO.findEventRange(n,r);Ad.select(n,a),t.isDraggingInternally&&(i&&Ad.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},LT=1,RT=function(){function e(e){var t=this;this.id=LT++,this.$textArea=null,this.$progressBar=zp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=zp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Zh(function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=FO.findDocumentOrShadowRoot(t),a=i.activeElement,u=FO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,rO.set(t,!0)):rO.delete(t),!s)return Ad.deselect(t);var l=s.anchorNode,c=s.focusNode,f=xT(t,l)||ST(t,l),d=xT(t,c)||ST(t,c);if(f&&d){var p=FO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Ad.select(t,p)}else Ad.deselect(t)}}(t,e)},100);var n=zp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=zp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=zp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,OB(function(){var e=t.editorInstance,n=FO.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)}),r.on("click",function(){return e.hidePanelOrModal()}),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",function(){return o(e)}),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=LA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(jh(IT,function(n,o){t.on(o,function(t){n(t,e,r)})}),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Zh(function(){r.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout(function(){return o&&o(t)}):null!=e.latestEditorSelection&&null==t.selection&&setTimeout(function(){return r&&r(t)}),e.latestEditorSelection=t.selection})},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-FO.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout(function(){t.hide(),t.css("width","0"),t.show()},1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;yT(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=zp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),OB(function(){OT(e,t)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function MT(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&MT(t)}function zT(){return zp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function HT(){return zp('<div class="w-e-bar-divider"></div>')}function VT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=CO?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}dS("match",function(e,t,n){return[function(t){var n=Qb(this),r=null==t?void 0:Uw(t,e);return r?Iw(r,t,n):new RegExp(t)[e](ZD(n))},function(e){var r=jw(this),o=ZD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return CS(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=CS(r,o));){var c=ZD(u[0]);s[l]=c,""===c&&(r.lastIndex=hS(o,UE(r.lastIndex),a)),l++}return 0===l?null:s}]});var $T=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=zp('<div class="w-e-bar-item"></div>'),this.$button=zp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=zp(c);MT(d),f.append(d)}else f.text(a);VT(f,c,a,s,n),n&&c&&f.append(zp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),OB(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(t){t.preventDefault(),n_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},e.prototype.exec=function(){var e=n_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=n_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=n_(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),UT=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return jS(t,e),t.prototype.onButtonClick=function(){},t}($T),WT=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=$A.get(e);null==t&&(t=new Set,$A.set(e,t)),t.add(this),UA.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=UA.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=UA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),GT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=zp('<div class="w-e-drop-panel"></div>'),n}return jS(t,e),t.prototype.genSelfElem=function(){return null},t}(WT),qT=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=zT();o.$button.append(i)}return o}return jS(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=n_(this);if(null==this.dropPanel){var n=new GT(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}($T),KT=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=zp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",function(e){return e.stopPropagation()}),o.on("keyup",function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())}),r}return jS(t,e),t.prototype.genSelfElem=function(){var e=this,t=zp('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=UA.get(this);return t.on("click",function(){e.hide(),null==n||n.restoreSelection()}),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(WT);function YT(e,t,n){var r=zp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=zp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function XT(e,t){var n=zp('<div class="button-container"></div>'),r=zp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var ZT=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=zp("body"),o.modal=null,o.menu=n,o}return jS(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=n_(this),t=this.menu.getModalPositionNode(e);return _f.isElement(t)?qF(e,t,"modal"):GF(e)},t.prototype.handleModal=function(){var e=n_(this),t=this.menu;if(null==this.modal){var n=new KT(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=n_(this),r=this.menu;if(null!=r.getModalContentElem){var o=FO.getTextarea(n),i=FO.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||KF(n,e.$elem),setTimeout(function(){n.blur()})}},t}($T),JT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=zp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",function(e){e.stopPropagation()}),r}return jS(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=zp("<ul></ul>");e.forEach(function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=zp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=zp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(zp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)}),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(WT),QT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=zp('<div class="w-e-bar-item"></div>'),this.$button=zp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),VT(f,s,i,c,n),this.$elem.append(f),this.menu=t,OB(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(t){t.preventDefault(),n_(e).hidePanelOrModal(),e.trigger()})},e.prototype.trigger=function(){var e=this,t=n_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new JT(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",function(t){var n=t.target;if(null!=n){t.preventDefault();var r=zp(n).attr("data-value");e.onChange(r)}})}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=n_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=n_(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=zT();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=n_(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),e_=function(){function e(e){this.$elem=zp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=zp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=zp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=zp(n);MT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=zT();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver(function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each(function(e){zp(e).hasClass("disabled")&&a++}),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}});return r},e}(),t_=new WeakMap;function n_(e){var t=VA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function r_(e,t,n){void 0===n&&(n=!1);var r=t_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new qT(e,t,n):a?new ZT(e,t,n):new UT(e,t,n)}if("select"===o&&(r=new QT(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return t_.set(t,r),r}function o_(e,t){var n=e.selection;return null!=n&&!td.isCollapsed(n)&&!FO.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0})&&!!sd.isText(t)}var i_=function(){function e(){var e=this;this.$elem=zp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Vv(function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&_f.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)},200),OB(function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),FO.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;OB(function(){e.hoverbarItems.forEach(function(e){e.changeMenuState()})})},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach(function(e){if("|"!==e)t.registerSingleItem(e);else{var r=HT();n.append(r)}})},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=PO[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=r_(e,r);this.hoverbarItems.push(i),VA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),_f.isElement(e)){var r=qF(t,e,"bar");return n.css(r),void KF(t,n)}if(sd.isText(e))return r=GF(t),n.css(r),void KF(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return FO.checkNodeType(t,o)},c=LS(Rf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=zA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=o_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=FO.findPath(null,e),r=FO.findPath(null,t);return qf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function a_(e,t,n,r){if(YA.set(e,t),XA.set(e,n),_f.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach(function(t,n){return a_(t,n,e,r)}),Rf.isVoid(r,e)){var i=LS($f.texts(e),1),a=LS(i[0],1)[0];YA.set(a,0),XA.set(a,e)}}}function u_(e){var t,n=e.selector,r=void 0===n?"":n,o=e.config,i=void 0===o?{}:o,a=e.content,u=e.html,s=e.plugins,l=void 0===s?[]:s,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];YD.withoutSaving(t,()=>{Rf.withoutNormalizing(t,()=>{for(var e of r)t.apply(e)})}),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];YD.withoutSaving(t,()=>{Rf.withoutNormalizing(t,()=>{var e=r.map(Gf.inverse).reverse();for(var n of e)t.apply(n)})}),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var r,o,{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],l=s&&s[s.length-1],c=(r=e,!(!(o=l)||"set_selection"!==r.type||"set_selection"!==o.type)),f=YD.isSaving(t),d=YD.isMerging(t);if(null==f&&(f=(e=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),f){if(null==d&&(d=null!=s&&(0!==i.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!qf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!qf.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=FO.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=FO.getLeftLengthOfMaxLength(t);n<=0||n<$f.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach(function(e){t.insertNode(e)});else{var n=e[0];if(FO.getLeftLengthOfMaxLength(t)<$f.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=FO.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce(function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===cO.TEXT_NODE?e+(t.textContent||""):n===cO.ELEMENT_NODE?wF.has(r.toLowerCase())?e:e+(t.textContent||""):e:e},"").length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=VF(t);if(r.on(e,n),"destroyed"===e&&UF(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),UF(t,o)}},t.once=function(e,n){VF(t).once(e,n)},t.off=function(e,n){VF(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=VF(t);o.emit.apply(o,RS([e],LS(n))),"destroyed"===e&&(function(e){return $F.get(e)||new Set}(t).forEach(function(e){return o.off("destroyed",e)}),function(e){$F.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){Ad.select(t,e)},t.deselect=function(){var n=t.selection,r=FO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Ad.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Ad.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=oO.get(t);null!=e&&(t.focus(),Ad.select(t,e))},t.getSelectionPosition=function(){return GF(t)},t.getNodePosition=function(e){return qF(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=LS(td.edges(e),2),r=n[0],o=n[1],i=LS(Rf.edges(t,[]),2),a=i[0],u=i[1];return!(!Zf.equals(r,a)||!Zf.equals(o,u))},t.selectAll=function(){var e=Rf.start(t,[]),n=Rf.end(t,[]);Ad.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=IS(Rf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=LS(p.value,2),g=h[0],v=h[1],y=FO.findKey(t,g);f.push([v,y])}}catch(O){n={error:O}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=IS(Rf.levels(t,{at:qf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=LS(b.value,2);g=w[0],v=w[1],y=FO.findKey(t,g),f.push([v,y])}}catch(O){i={error:O}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=IS(Rf.levels(t,{at:qf.common(qf.parent(e.path),qf.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var C=LS(D.value,2);g=C[0],v=C[1],y=FO.findKey(t,g),f.push([v,y])}}catch(O){u={error:O}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var x=IS(f),S=x.next();!S.done;S=x.next()){var A=LS(S.value,2);v=A[0],y=A[1],g=LS(Rf.node(t,v),1)[0],tO.set(g,y)}}catch(O){l={error:O}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&td.isCollapsed(e.selection)){var r=Rf.above(e,{match:function(t){return Rf.isBlock(e,t)},at:e.selection});if(r){var o=LS(r,2)[1],a=Rf.range(e,o,e.selection.anchor),u=function(e,t){var n=Rf.range(e,td.end(t)),r=Array.from(Rf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(TB(e,Rf.range(e,r[o]),n))return Rf.range(e,r[o],n);if(r.length<2)return Rf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)TB(e,Rf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Rf.range(e,r[i],n)}(t,a);td.isCollapsed(u)||Ad.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&oO.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map(function(e){return kB(e,t)}).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map(function(e){return $f.string(e)}).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Rf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Rf.nodes(t,{at:[],universal:!0});try{for(var u=IS(a),s=u.next();!s.done;s=u.next()){var l=LS(s.value,1)[0];if(_f.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=BB(FO.findKey(t,l).id);i.push(NS(NS({},l),{id:c}))}}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(_f.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(sd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Ad.delete(t,{at:{anchor:Rf.start(t,[]),focus:Rf.end(t,[])}}),0===t.children.length&&Ad.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return FO.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter(function(e){var t=e.nodeType,n=e.nodeName;return t===cO.TEXT_NODE||t===cO.ELEMENT_NODE&&!wF.has(n.toLowerCase())})).length){var i=t.selection;if(null!=i){var a=null;FO.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach(function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==cO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(_B.includes(r.toLowerCase()))s=!0;else for(var l in NB)if(a.matches(l)){s=!0;break}if(s){var c=dF(zp(a),t);return Array.isArray(c)?(c.forEach(function(e){return EF(t,e)}),u++):(EF(t,c),u++),void(FO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;FO.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}}),u&&a&&FO.isEmptyPath(t,a)&&Ad.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=hF(t,e);if(Ad.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(a){t.select(Rf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in PO)e.push(t);return e},t.getConfig=function(){var e=WA.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}((t=DF((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Rf.pathRefs(e))Kf.transform(n,t);for(var r of Rf.pointRefs(e))Jf.transform(r,t);for(var o of Rf.rangeRefs(e))nd.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=qc.get(e)||[],l=tf(t);for(var c of s)u(qf.transform(c,t));for(var f of l)u(f);qc.set(e,a),Ad.transform(e,t),e.operations.push(t),Rf.normalize(e),"set_selection"===t.type&&(e.marks=null),Kc.get(e)||(Kc.set(e,!0),Promise.resolve().then(()=>{Kc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(td.isExpanded(r))Ad.setNodes(e,{[t]:n},{match:sd.isText,split:!0});else{var o=ef(ef({},Rf.marks(e)||{}),{},{[t]:n});e.marks=o,Kc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&td.isCollapsed(n)&&Ad.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&td.isCollapsed(n)&&Ad.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&td.isExpanded(n)&&Ad.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?$f.fragment(e,t):[]},insertBreak:()=>{Ad.splitNodes(e,{always:!0})},insertFragment:t=>{Ad.insertFragment(e,t)},insertNode:t=>{Ad.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=ef({text:t},r);Ad.insertNodes(e,o)}else Ad.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!sd.isText(n))if(_f.isElement(n)&&0===n.children.length)Ad.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Rf.isEditor(n)&&_f.isElement(n)&&(e.isInline(n)||0===n.children.length||sd.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=$f.get(e,r);if(!sd.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(sd.isText(s)||_f.isElement(s)&&e.isInline(s))!==o?(Ad.removeNodes(e,{at:r.concat(i),voids:!0}),i--):_f.isElement(s)?e.isInline(s)&&(null!=l&&sd.isText(l)?c&&(Ad.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Ad.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&sd.isText(l)&&(sd.equals(s,l,{loose:!0})?(Ad.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Ad.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Ad.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(td.isExpanded(n))Ad.unsetNodes(e,t,{match:sd.isText,split:!0});else{var r=ef({},Rf.marks(e)||{});delete r[t],e.marks=r,Kc.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+TO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(FO.toDOMNode(t,t).focus({preventScroll:!0}),rO.set(t,!0),e){var n=Rf.end(t,[]);Ad.select(t,n)}else{var r=oO.get(t);r?Ad.select(t,r):Ad.select(t,Rf.start(t,[]))}},t.isFocused=function(){return!!rO.get(t)},t.blur=function(){FO.toDOMNode(t,t).blur(),Ad.deselect(t),rO.set(t,!1)},t.updateView=function(){FO.getTextarea(t).changeViewState();var e=FO.getToolbar(t);e&&e.changeToolbarState();var n=FO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=FO.getTextarea(t);e.destroy(),IA.delete(t),LA.delete(e);var n=FO.getToolbar(t);n&&(n.destroy(),MA.delete(t),RA.delete(n));var r=FO.getHoverbar(t);r&&(r.destroy(),HA.delete(t),zA.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(t.getConfig().scroll){var n=zp("#"+e);if(0!==n.length){var r=n[0];if(!FO.hasDOMNode(t,r))return;var o=FO.getTextarea(t),i=o.$textAreaContainer,a=o.$scroll,u=n.offset().top,s=i.offset().top;a[0].scrollBy({top:u-s,behavior:"smooth"})}}},t.showProgressBar=function(e){e<1||FO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=$A.get(t);null!=e&&e.forEach(function(e){return e.hide()})},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return FO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=FO.getToolbar(t);n&&(e=n.$box);var r=FO.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=FO.getTextarea(t).$box.parent();setTimeout(function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")},200)}},t.getEditableContainer=function(){return FO.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return pF(e,"data-w-e-textarea",t)}(c,r))throw new Error("Repeated create editor by selector '"+r+"'");var f=function(e){void 0===e&&(e={});var t=$v(_O),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return jh(t,function(e,t){n[t]=NS(NS({},e),o[t]||{})}),delete e.MENU_CONF,NS({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(i);WA.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach(function(e){c=e(c)}),null!=u&&(c.children=hF(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),FO.normalizeContent(c),r){var h=new RT(r);IA.set(c,h),LA.set(h,c),h.changeViewState(),OB(function(){var e=h.$scroll;null!=e&&e.height()});var g=void 0;Object.keys(p).length>0&&(g=new i_,zA.set(g,c),HA.set(c,g)),c.on("change",function(){c.hidePanelOrModal()}),c.on("scroll",function(){c.hidePanelOrModal()})}else c.children.forEach(function(e,t){return a_(e,t,c,c)});var v=f.onCreated,y=f.onDestroyed;return v&&c.on("created",function(){return v(c)}),y&&c.on("destroyed",function(){return y(c)}),OB(function(){return c.emit("created")}),c}var s_=Ix("splice"),l_=Vb.TypeError,c_=Math.max,f_=Math.min;VD({target:"Array",proto:!0,forced:!s_},{splice:function(e,t){var n,r,o,i,a,u,s=tw(this),l=WE(s),c=ED(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=f_(c_(VE(t),0),l-c)),l+n-r>9007199254740991)throw l_("Maximum allowed length exceeded");for(o=rD(s,r),i=0;i<r;i++)(a=c+i)in s&&PC(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var d_=function(){function e(e,t){var n=this;this.$toolbar=zp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Vv(function(){n.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t;var r=zp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),r.append(o),OB(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=$v(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach(function(e,t){c.splice(u.index+t,0,e)}));var f=c.filter(function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0}),d=f.length;f.forEach(function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=HT();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"})},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=new e_(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach(function(e){u.includes(e)||t.registerSingleItem(e,r)}),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof e_,o=this.menus,i=o[e];if(null==i){var a=PO[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}var u=r_(e,i,r);this.toolbarItems.push(u),VA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=RA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),p_=EE.EXISTS,h_=Zw.f,g_=Function.prototype,v_=Zb(g_.toString),y_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,m_=Zb(y_.exec);function b_(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,D=void 0===E?function(e,t){}:E,C=e.onError,x=void 0===C?function(e,t,n){}:C,S=e.onProgress,A=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=LS(e.split("#"),2),r=n[0],o=n[1],i=[];jh(t,function(e,t){i.push(t+"="+e)});var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var k=new dm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Ib,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",function(e,t){var n=t.body,r=void 0===n?{}:n;try{D(e,r)}catch(o){}k.removeFile(e.id)}),k.on("progress",function(e){e<1||A(e)}),k.on("upload-error",function(e,t,n){try{x(e,t,n)}catch(r){}k.removeFile(e.id)}),k.on("restriction-failed",function(e,t){try{x(e,t)}catch(n){}k.removeFile(e.id)}),k}function w_(e){return(w_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.forEach(function(t){E_(e,t,n[t])})}return e}function C_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S_(e,t,n){return t&&x_(e.prototype,t),n&&x_(e,n),e}function A_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O_(e,t){if(t&&("object"===w_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A_(e)}function k_(e){return(k_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B_(e,t){return(B_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B_(e,t)}Aw&&!p_&&h_(g_,"name",{configurable:!0,get:function(){try{return m_(y_,v_(this))[1]}catch(De){return""}}});var T_={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]}},__=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};C_(this,e),this.init(t,n)}return S_(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||T_,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,D_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),P_=function(){function e(){C_(this,e),this.observers={}}return S_(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)});this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function j_(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function N_(e){return null==e?"":""+e}function I_(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function L_(e,t,n){var r=I_(e,t,Object);r.obj[r.k]=n}function R_(e,t){var n=I_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function M_(e,t,n){var r=R_(e,n);return void 0!==r?r:R_(t,n)}function z_(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):z_(e[r],t[r],n):e[r]=t[r]);return e}function H_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var V_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function $_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return V_[e]}):e}var U_="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function W_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?W_(s,l,n):void 0}o=o[r[i]]}return o}}var G_=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return C_(this,e),n=O_(this,k_(e).call(this)),U_&&P_.call(A_(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return F_(e,P_),S_(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=R_(this.data,a);return u||!i||"string"!=typeof n?u:W_(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),L_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=R_(this.data,a)||{};r?z_(u,n,o):u=D_({},u,n),L_(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?D_({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),e}(),q_={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}},K_={},Y_=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return C_(this,e),n=O_(this,k_(e).call(this)),U_&&P_.call(A_(n)),function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,A_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=__.create("translator"),n}return F_(e,P_),S_(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(t,n,r){var o=this;if("object"!==w_(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(t,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,D_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,E=w?[]:{},D=w?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var x="".concat(D).concat(i).concat(C);E[C]=this.translate(x,D_({},n,{joinArrays:!1,ns:s})),E[C]===x&&(E[C]=h[C])}h=E}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var S=!1,A=!1,O=void 0!==n.count&&"string"!=typeof n.count,k=e.hasDefaultValue(n),B=O?this.pluralResolver.getSuffix(c,n.count):"",F=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(S=!0,h=F),this.isValidLookup(h)||(A=!0,h=u);var T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:h,_=k&&F!==h&&this.options.updateMissing;if(A||S||_){if(this.logger.log(_?"updateKey":"missingKey",c,l,u,_?F:h),i){var P=this.resolve(u,D_({},n,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I<N.length;I++)j.push(N[I]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var L=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,_?r:T,_,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,_?r:T,_,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?j.forEach(function(e){o.pluralResolver.getSuffixes(e).forEach(function(t){L([e],u+t,n["defaultValue".concat(t)]||F)})}):L(j,u,F))}h=this.extendTranslation(h,t,n,p,r),A&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(A||S)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(D_({},n,{interpolation:D_({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=D_({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=q_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?D_({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach(function(e){a.isValidLookup(t)||(i=e,!K_["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(K_["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),e}();function X_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Z_=function(){function e(t){C_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=__.create("languageUtils")}return S_(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=X_(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=X_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=X_(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o}}]),e}(),J_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Q_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var eP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};C_(this,e),this.languageUtils=t,this.options=n,this.logger=__.create("pluralResolver"),this.rules=function(){var e={};return J_.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Q_[t.fc]}})}),e}()}return S_(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map(function(n){return t.getSuffix(e,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),tP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};C_(this,e),this.logger=__.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return S_(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:$_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?H_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?H_(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?H_(t.nestingPrefix):t.nestingPrefixEscaped||H_("$t("),this.nestingSuffix=t.nestingSuffix?H_(t.nestingSuffix):t.nestingSuffixEscaped||H_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=M_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,D_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(M_(t,s,a),l,n,D_({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=N_(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=D_({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=D_({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=N_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce(function(e,t){return o.format(e,t,i.lng,D_({},i,{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),nP=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return C_(this,e),o=O_(this,k_(e).call(this)),U_&&P_.call(A_(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=__.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return F_(e,P_),S_(e,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach(function(e){var r=!0;t.forEach(function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))}),r||u.push(e)}),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var r,u,s,l,c;r=n.loaded,u=i,s=I_(r,[o],Object),l=s.obj,c=s.k,l[c]=l[c]||[],l[c].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach(function(t){a[e].indexOf(t)<0&&a[e].push(t)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,function(u,s){u&&s&&o<5?setTimeout(function(){r.read.call(r,e,t,n,o+1,2*i,a)},i):a(u,s)}):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,D_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function rP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function oP(){}var iP=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(C_(this,e),t=O_(this,k_(e).call(this)),U_&&P_.call(A_(t)),t.options=rP(n),t.services={},t.logger=__,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),O_(t,A_(t));setTimeout(function(){t.init(n,r)},0)}return t}return F_(e,P_),S_(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=D_({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===w_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===w_(e[2])||"object"===w_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,rP(t)),this.format=this.options.interpolation.format,n||(n=oP),!this.options.isClone){this.modules.logger?__.init(r(this.modules.logger),this.options):__.init(null,this.options);var o=new Z_(this.options);this.store=new G_(this.options.resources,this.options);var i=this.services;i.logger=__,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new eP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new tP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new nP(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Y_(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var u=j_(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oP,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)});this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=j_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=oP),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&q_.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=j_();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){var o,a;o=e,(a=i)?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(o,function(){return n.t.apply(n,arguments)})})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==w_(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=D_({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=j_();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=j_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oP,o=D_({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach(function(e){i[e]=t[e]}),i.services=D_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Y_(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))}),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),aP=new iP;function uP(e,t){aP.addResourceBundle(e,"translation",t,!0,!0)}aP.init({lng:"zh-CN",resources:{}});var sP=aP.t.bind(aP);uP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),uP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var lP=wa?{}.toString:function(){return"[object "+xa(this)+"]"};wa||Vi(Object.prototype,"toString",lP,{unsafe:!0});var cP,fP=Array.isArray||function(e){return"Array"==fo(e)},dP=function(){},pP=[],hP=Eo("Reflect","construct"),gP=/^\s*(?:class|function)\b/,vP=so(gP.exec),yP=!gP.exec(dP),mP=function(e){if(!bo(e))return!1;try{return hP(dP,pP,e),!0}catch(t){return!1}},bP=!hP||Yr(function(){var e;return mP(mP.call)||!mP(Object)||!mP(function(){e=!0})||e})?function(e){if(!bo(e))return!1;switch(xa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yP||!!vP(gP,xi(e))}:mP,wP=ti("species"),EP=Kr.Array,DP=function(e,t){return new(fP(n=e)&&(r=n.constructor,(bP(r)&&(r===EP||fP(r.prototype))||wo(r)&&null===(r=r[wP]))&&(r=void 0)),void 0===r?EP:r)(0===t?0:t);var n,r},CP=so([].push),xP=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Uo(s),g=go(h),v=_u(l,c),y=Zi(g),m=0,b=f||DP,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:CP(w,d)}else switch(e){case 4:return!1;case 7:CP(w,d)}return i?-1:r||o?o:w}}(0),SP=!!(cP=[].forEach)&&Yr(function(){cP.call(null,function(){throw 1},1)})?[].forEach:function(e){return xP(this,e,arguments.length>1?arguments[1]:void 0)},AP=function(e){if(e&&e.forEach!==SP)try{bi(e,"forEach",SP)}catch(t){e.forEach=SP}};for(var OP in xs)xs[OP]&&AP(Kr[OP]&&Kr[OP].prototype);AP(Os),uP("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),uP("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var kP={type:"paragraph",renderElem:function(e,t,n){return Fg("p",null,t)}},BP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function FP(e){var t={exports:{}};return e(t,t.exports),t.exports}var TP,_P,PP=function(e){return e&&e.Math==Math&&e},jP=PP("object"==typeof globalThis&&globalThis)||PP("object"==typeof window&&window)||PP("object"==typeof self&&self)||PP("object"==typeof BP&&BP)||function(){return this}()||Function("return this")(),NP=function(e){try{return!!e()}catch(t){return!0}},IP=!NP(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),LP=Function.prototype.call,RP=LP.bind?LP.bind(LP):function(){return LP.apply(LP,arguments)},MP={}.propertyIsEnumerable,zP=Object.getOwnPropertyDescriptor,HP=zP&&!MP.call({1:2},1)?function(e){var t=zP(this,e);return!!t&&t.enumerable}:MP,VP={f:HP},$P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},UP=Function.prototype,WP=UP.bind,GP=UP.call,qP=WP&&WP.bind(GP),KP=WP?function(e){return e&&qP(GP,e)}:function(e){return e&&function(){return GP.apply(e,arguments)}},YP=KP({}.toString),XP=KP("".slice),ZP=function(e){return XP(YP(e),8,-1)},JP=jP.Object,QP=KP("".split),ej=NP(function(){return!JP("z").propertyIsEnumerable(0)})?function(e){return"String"==ZP(e)?QP(e,""):JP(e)}:JP,tj=jP.TypeError,nj=function(e){if(null==e)throw tj("Can't call method on "+e);return e},rj=function(e){return ej(nj(e))},oj=function(e){return"function"==typeof e},ij=function(e){return"object"==typeof e?null!==e:oj(e)},aj=function(e,t){return arguments.length<2?function(e){return oj(e)?e:void 0}(jP[e]):jP[e]&&jP[e][t]},uj=KP({}.isPrototypeOf),sj=aj("navigator","userAgent")||"",lj=jP.process,cj=jP.Deno,fj=lj&&lj.versions||cj&&cj.version,dj=fj&&fj.v8;dj&&(_P=(TP=dj.split("."))[0]>0&&TP[0]<4?1:+(TP[0]+TP[1])),!_P&&sj&&(!(TP=sj.match(/Edge\/(\d+)/))||TP[1]>=74)&&(TP=sj.match(/Chrome\/(\d+)/))&&(_P=+TP[1]);var pj=_P,hj=!!Object.getOwnPropertySymbols&&!NP(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pj&&pj<41}),gj=hj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vj=jP.Object,yj=gj?function(e){return"symbol"==typeof e}:function(e){var t=aj("Symbol");return oj(t)&&uj(t.prototype,vj(e))},mj=jP.String,bj=function(e){try{return mj(e)}catch(t){return"Object"}},wj=jP.TypeError,Ej=function(e){if(oj(e))return e;throw wj(bj(e)+" is not a function")},Dj=function(e,t){var n=e[t];return null==n?void 0:Ej(n)},Cj=jP.TypeError,xj=Object.defineProperty,Sj=function(e,t){try{xj(jP,e,{value:t,configurable:!0,writable:!0})}catch(cP){jP[e]=t}return t},Aj=jP["__core-js_shared__"]||Sj("__core-js_shared__",{}),Oj=FP(function(e){(e.exports=function(e,t){return Aj[e]||(Aj[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),kj=jP.Object,Bj=function(e){return kj(nj(e))},Fj=KP({}.hasOwnProperty),Tj=Object.hasOwn||function(e,t){return Fj(Bj(e),t)},_j=0,Pj=Math.random(),jj=KP(1..toString),Nj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+jj(++_j+Pj,36)},Ij=Oj("wks"),Lj=jP.Symbol,Rj=Lj&&Lj.for,Mj=gj?Lj:Lj&&Lj.withoutSetter||Nj,zj=function(e){if(!Tj(Ij,e)||!hj&&"string"!=typeof Ij[e]){var t="Symbol."+e;hj&&Tj(Lj,e)?Ij[e]=Lj[e]:Ij[e]=gj&&Rj?Rj(t):Mj(t)}return Ij[e]},Hj=jP.TypeError,Vj=zj("toPrimitive"),$j=function(e){var t=function(e){if(!ij(e)||yj(e))return e;var t,n=Dj(e,Vj);if(n){if(t=RP(n,e,"string"),!ij(t)||yj(t))return t;throw Hj("Can't convert object to primitive value")}return function(e){var t,n;if(oj(t=e.toString)&&!ij(n=RP(t,e)))return n;if(oj(t=e.valueOf)&&!ij(n=RP(t,e)))return n;throw Cj("Can't convert object to primitive value")}(e)}(e);return yj(t)?t:t+""},Uj=jP.document,Wj=ij(Uj)&&ij(Uj.createElement),Gj=function(e){return Wj?Uj.createElement(e):{}},qj=!IP&&!NP(function(){return 7!=Object.defineProperty(Gj("div"),"a",{get:function(){return 7}}).a}),Kj=Object.getOwnPropertyDescriptor,Yj={f:IP?Kj:function(e,t){if(e=rj(e),t=$j(t),qj)try{return Kj(e,t)}catch(n){}if(Tj(e,t))return $P(!RP(VP.f,e,t),e[t])}},Xj=jP.String,Zj=jP.TypeError,Jj=function(e){if(ij(e))return e;throw Zj(Xj(e)+" is not an object")},Qj=jP.TypeError,eN=Object.defineProperty,tN={f:IP?eN:function(e,t,n){if(Jj(e),t=$j(t),Jj(n),qj)try{return eN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Qj("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},nN=IP?function(e,t,n){return tN.f(e,t,$P(1,n))}:function(e,t,n){return e[t]=n,e},rN=KP(Function.toString);oj(Aj.inspectSource)||(Aj.inspectSource=function(e){return rN(e)});var oN,iN,aN,uN=Aj.inspectSource,sN=jP.WeakMap,lN=oj(sN)&&/native code/.test(uN(sN)),cN=Oj("keys"),fN=function(e){return cN[e]||(cN[e]=Nj(e))},dN={},pN=jP.TypeError,hN=jP.WeakMap;if(lN||Aj.state){var gN=Aj.state||(Aj.state=new hN),vN=KP(gN.get),yN=KP(gN.has),mN=KP(gN.set);oN=function(e,t){if(yN(gN,e))throw new pN("Object already initialized");return t.facade=e,mN(gN,e,t),t},iN=function(e){return vN(gN,e)||{}},aN=function(e){return yN(gN,e)}}else{var bN=fN("state");dN[bN]=!0,oN=function(e,t){if(Tj(e,bN))throw new pN("Object already initialized");return t.facade=e,nN(e,bN,t),t},iN=function(e){return Tj(e,bN)?e[bN]:{}},aN=function(e){return Tj(e,bN)}}var wN={get:iN,enforce:function(e){return aN(e)?iN(e):oN(e,{})}},EN=Function.prototype,DN=IP&&Object.getOwnPropertyDescriptor,CN=Tj(EN,"name"),xN={EXISTS:CN,PROPER:CN&&"something"===function(){}.name,CONFIGURABLE:CN&&(!IP||IP&&DN(EN,"name").configurable)},SN=FP(function(e){var t=xN.CONFIGURABLE,n=wN.get,r=wN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;oj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Tj(i,"name")||t&&i.name!==f)&&nN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==jP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:nN(e,n,i)):l?e[n]=i:Sj(n,i)})(Function.prototype,"toString",function(){return oj(this)&&n(this).source||uN(this)})}),AN=Math.ceil,ON=Math.floor,kN=function(e){var t=+e;return t!=t||0===t?0:(t>0?ON:AN)(t)},BN=Math.max,FN=Math.min,TN=function(e,t){var n=kN(e);return n<0?BN(n+t,0):FN(n,t)},_N=Math.min,PN=function(e){return e>0?_N(kN(e),9007199254740991):0},jN=function(e){return PN(e.length)},NN=function(e){return function(t,n,r){var o,i=rj(t),a=jN(i),u=TN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},IN={includes:NN(!0),indexOf:NN(!1)},LN=IN.indexOf,RN=KP([].push),MN=function(e,t){var n,r=rj(e),o=0,i=[];for(n in r)!Tj(dN,n)&&Tj(r,n)&&RN(i,n);for(;t.length>o;)Tj(r,n=t[o++])&&(~LN(i,n)||RN(i,n));return i},zN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],HN=zN.concat("length","prototype"),VN={f:Object.getOwnPropertyNames||function(e){return MN(e,HN)}},$N={f:Object.getOwnPropertySymbols},UN=KP([].concat),WN=aj("Reflect","ownKeys")||function(e){var t=VN.f(Jj(e)),n=$N.f;return n?UN(t,n(e)):t},GN=function(e,t){for(var n=WN(t),r=tN.f,o=Yj.f,i=0;i<n.length;i++){var a=n[i];Tj(e,a)||r(e,a,o(t,a))}},qN=/#|\.prototype\./,KN=function(e,t){var n=XN[YN(e)];return n==JN||n!=ZN&&(oj(t)?NP(t):!!t)},YN=KN.normalize=function(e){return String(e).replace(qN,".").toLowerCase()},XN=KN.data={},ZN=KN.NATIVE="N",JN=KN.POLYFILL="P",QN=KN,eI=Yj.f,tI=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?jP:l?jP[u]||Sj(u,{}):(jP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=eI(n,r))&&a.value:n[r],!QN(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;GN(i,o)}(e.sham||o&&o.sham)&&nN(i,"sham",!0),SN(n,r,i,e)}},nI=KP(KP.bind),rI=Array.isArray||function(e){return"Array"==ZP(e)},oI={};oI[zj("toStringTag")]="z";var iI="[object z]"===String(oI),aI=zj("toStringTag"),uI=jP.Object,sI="Arguments"==ZP(function(){return arguments}()),lI=iI?ZP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=uI(e),aI))?n:sI?ZP(t):"Object"==(r=ZP(t))&&oj(t.callee)?"Arguments":r},cI=function(){},fI=[],dI=aj("Reflect","construct"),pI=/^\s*(?:class|function)\b/,hI=KP(pI.exec),gI=!pI.exec(cI),vI=function(e){if(!oj(e))return!1;try{return dI(cI,fI,e),!0}catch(t){return!1}},yI=!dI||NP(function(){var e;return vI(vI.call)||!vI(Object)||!vI(function(){e=!0})||e})?function(e){if(!oj(e))return!1;switch(lI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return gI||!!hI(pI,uN(e))}:vI,mI=zj("species"),bI=jP.Array,wI=function(e,t){return new(rI(n=e)&&(r=n.constructor,(yI(r)&&(r===bI||rI(r.prototype))||ij(r)&&null===(r=r[mI]))&&(r=void 0)),void 0===r?bI:r)(0===t?0:t);var n,r},EI=KP([].push),DI=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Bj(s),g=ej(h),v=function(e,t){return Ej(e),void 0===t?e:nI?nI(e,t):function(){return e.apply(t,arguments)}}(l,c),y=jN(g),m=0,b=f||wI,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:EI(w,d)}else switch(e){case 4:return!1;case 7:EI(w,d)}return i?-1:r||o?o:w}},CI={forEach:DI(0),map:DI(1),filter:DI(2),find:DI(5)},xI=zj("species"),SI=function(e){return pj>=51||!NP(function(){var t=[];return(t.constructor={})[xI]=function(){return{foo:1}},1!==t[e](Boolean).foo})},AI=CI.filter;tI({target:"Array",proto:!0,forced:!SI("filter")},{filter:function(e){return AI(this,e,arguments.length>1?arguments[1]:void 0)}});var OI=iI?{}.toString:function(){return"[object "+lI(this)+"]"};iI||SN(Object.prototype,"toString",OI,{unsafe:!0});var kI,BI=jP.String,FI=function(e){if("Symbol"===lI(e))throw TypeError("Cannot convert a Symbol value to a string");return BI(e)},TI=function(){var e=Jj(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_I=jP.RegExp,PI=NP(function(){var e=_I("a","y");return e.lastIndex=2,null!=e.exec("abcd")});PI||NP(function(){return!_I("a","y").sticky});var jI={BROKEN_CARET:PI||NP(function(){var e=_I("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:PI},NI=Object.keys||function(e){return MN(e,zN)},II=IP?Object.defineProperties:function(e,t){Jj(e);for(var n,r=rj(t),o=NI(t),i=o.length,a=0;i>a;)tN.f(e,n=o[a++],r[n]);return e},LI=aj("document","documentElement"),RI=fN("IE_PROTO"),MI=function(){},zI=function(e){return"<script>"+e+"<\/script>"},HI=function(e){e.write(zI("")),e.close();var t=e.parentWindow.Object;return e=null,t},VI=function(){try{kI=new ActiveXObject("htmlfile")}catch(r){}var e,t;VI="undefined"!=typeof document?document.domain&&kI?HI(kI):((t=Gj("iframe")).style.display="none",LI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zI("document.F=Object")),e.close(),e.F):HI(kI);for(var n=zN.length;n--;)delete VI.prototype[zN[n]];return VI()};dN[RI]=!0;var $I,UI,WI=Object.create||function(e,t){var n;return null!==e?(MI.prototype=Jj(e),n=new MI,MI.prototype=null,n[RI]=e):n=VI(),void 0===t?n:II(n,t)},GI=jP.RegExp,qI=NP(function(){var e=GI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),KI=jP.RegExp,YI=NP(function(){var e=KI("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),XI=wN.get,ZI=Oj("native-string-replace",String.prototype.replace),JI=RegExp.prototype.exec,QI=JI,eL=KP("".charAt),tL=KP("".indexOf),nL=KP("".replace),rL=KP("".slice),oL=(UI=/b*/g,RP(JI,$I=/a/,"a"),RP(JI,UI,"a"),0!==$I.lastIndex||0!==UI.lastIndex),iL=jI.BROKEN_CARET,aL=void 0!==/()??/.exec("")[1];(oL||aL||iL||qI||YI)&&(QI=function(e){var t,n,r,o,i,a,u,s=this,l=XI(s),c=FI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=RP(QI,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=iL&&s.sticky,h=RP(TI,s),g=s.source,v=0,y=c;if(p&&(h=nL(h,"y",""),-1===tL(h,"g")&&(h+="g"),y=rL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==eL(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),aL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),oL&&(r=s.lastIndex),o=RP(JI,p?n:s,y),p?o?(o.input=rL(o.input,v),o[0]=rL(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:oL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),aL&&o&&o.length>1&&RP(ZI,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=WI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var uL=QI;tI({target:"RegExp",proto:!0,forced:/./.exec!==uL},{exec:uL});var sL=Function.prototype,lL=sL.apply,cL=sL.bind,fL=sL.call,dL="object"==typeof Reflect&&Reflect.apply||(cL?fL.bind(lL):function(){return fL.apply(lL,arguments)}),pL=zj("species"),hL=RegExp.prototype,gL=function(e,t,n,r){var o=zj(e),i=!NP(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=i&&!NP(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[pL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t});if(!i||!a||n){var u=KP(/./[o]),s=t(o,""[e],function(e,t,n,r,o){var a=KP(e),s=t.exec;return s===uL||s===hL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});SN(String.prototype,e,s[0]),SN(hL,o,s[1])}r&&nN(hL[o],"sham",!0)},vL=KP("".charAt),yL=KP("".charCodeAt),mL=KP("".slice),bL=function(e){return function(t,n){var r,o,i=FI(nj(t)),a=kN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=yL(i,a))<55296||r>56319||a+1===u||(o=yL(i,a+1))<56320||o>57343?e?vL(i,a):r:e?mL(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),wL=function(e,t,n){return t+(n?bL(e,t).length:1)},EL=Math.floor,DL=KP("".charAt),CL=KP("".replace),xL=KP("".slice),SL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,AL=/\$([$&'`]|\d{1,2})/g,OL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=AL;return void 0!==o&&(o=Bj(o),s=SL),CL(i,s,function(i,s){var l;switch(DL(s,0)){case"$":return"$";case"&":return e;case"`":return xL(t,0,n);case"'":return xL(t,a);case"<":l=o[xL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=EL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?DL(s,1):r[f-1]+DL(s,1):i}l=r[c-1]}return void 0===l?"":l})},kL=jP.TypeError,BL=function(e,t){var n=e.exec;if(oj(n)){var r=RP(n,e,t);return null!==r&&Jj(r),r}if("RegExp"===ZP(e))return RP(uL,e,t);throw kL("RegExp#exec called on incompatible receiver")},FL=zj("replace"),TL=Math.max,_L=Math.min,PL=KP([].concat),jL=KP([].push),NL=KP("".indexOf),IL=KP("".slice),LL="$0"==="a".replace(/./,"$0"),RL=!!/./[FL]&&""===/./[FL]("a","$0");gL("replace",function(e,t,n){var r=RL?"$":"$0";return[function(e,n){var r=nj(this),o=null==e?void 0:Dj(e,FL);return o?RP(o,e,r,n):RP(t,FI(r),e,n)},function(e,o){var i=Jj(this),a=FI(e);if("string"==typeof o&&-1===NL(o,r)&&-1===NL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=oj(o);s||(o=FI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=BL(i,a);if(null===d)break;if(jL(f,d),!l)break;""===FI(d[0])&&(i.lastIndex=wL(a,PN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=FI((d=f[v])[0]),m=TL(_L(kN(d.index),a.length),0),b=[],w=1;w<d.length;w++)jL(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=PL([y],b,m,a);void 0!==E&&jL(D,E);var C=FI(dL(o,void 0,D))}else C=OL(y,a,m,b,E,o);m>=g&&(h+=IL(a,g,m)+C,g=m+y.length)}return h+IL(a,g)}]},!!NP(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!LL||RL);var ML=zj("unscopables"),zL=Array.prototype;null==zL[ML]&&tN.f(zL,ML,{configurable:!0,value:WI(null)});var HL=function(e){zL[ML][e]=!0},VL=CI.find,$L=!0;"find"in[]&&Array(1).find(function(){$L=!1}),tI({target:"Array",proto:!0,forced:$L},{find:function(e){return VL(this,e,arguments.length>1?arguments[1]:void 0)}}),HL("find");var UL=zj("match"),WL=function(e){var t;return ij(e)&&(void 0!==(t=e[UL])?!!t:"RegExp"==ZP(e))},GL=jP.TypeError,qL=zj("species"),KL=function(e,t,n){var r=$j(t);r in e?tN.f(e,r,$P(0,n)):e[r]=n},YL=jP.Array,XL=Math.max,ZL=function(e,t,n){for(var r=jN(e),o=TN(t,r),i=TN(void 0===n?r:n,r),a=YL(XL(i-o,0)),u=0;o<i;o++,u++)KL(a,u,e[o]);return a.length=u,a},JL=jI.UNSUPPORTED_Y,QL=Math.min,eR=[].push,tR=KP(/./.exec),nR=KP(eR),rR=KP("".slice);gL("split",function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=FI(nj(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!WL(e))return RP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=RP(uL,f,r))&&!((a=f.lastIndex)>c&&(nR(s,rR(r,c,i.index)),i.length>1&&i.index<r.length&&dL(eR,s,ZL(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&tR(f,"")||nR(s,""):nR(s,rR(r,c)),s.length>o?ZL(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:RP(t,this,e,n)}:t,[function(t,n){var o=nj(this),i=null==t?void 0:Dj(t,e);return i?RP(i,t,o,n):RP(r,FI(o),t,n)},function(e,o){var i=Jj(this),a=FI(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=Jj(i).constructor)||null==(l=Jj(c)[qL])?s:function(e){if(yI(e))return e;throw GL(bj(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(JL?"g":"y"),h=new f(JL?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===BL(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=JL?0:y;var b,w=BL(h,JL?rR(a,y):a);if(null===w||(b=QL(PN(h.lastIndex+(JL?y:0)),a.length))===v)y=wL(a,y,d);else{if(nR(m,rR(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(nR(m,w[E]),m.length===g)return m;y=v=b}}return nR(m,rR(a,v)),m}]},!!NP(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),JL);var oR="\t\n\v\f\r \u2028\u2029\ufeff",iR=KP("".replace),aR="["+oR+"]",uR=RegExp("^"+aR+aR+"*"),sR=RegExp(aR+aR+"*$"),lR={trim:function(e){return function(t){var n=FI(nj(t));return 1&e&&(n=iR(n,uR,"")),2&e&&(n=iR(n,sR,"")),n}}(3)},cR=xN.PROPER,fR=lR.trim;function dR(e){return 0===zp("<div>"+e+"</div>").children().filter(function(e){return"BR"!==e.tagName}).length}function pR(e){return 0===e.length?"":e[0].outerHTML}function hR(e){return e.length?e[0].tagName.toLowerCase():""}function gR(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}tI({target:"String",proto:!0,forced:NP(function(){return!!oR.trim()||"
"!=="
".trim()||cR&&"trim"!==oR.trim.name})},{trim:function(){return fR(this)}}),tI({global:!0},{globalThis:jP}),th&&(zp.fn.css=th),uh&&(zp.fn.append=uh),sh&&(zp.fn.prepend=sh),Hp&&(zp.fn.addClass=Hp),Vp&&(zp.fn.removeClass=Vp),$p&&(zp.fn.hasClass=$p),Kp&&(zp.fn.on=Kp),Yp&&(zp.fn.off=Yp),mh&&(zp.fn.focus=mh),Up&&(zp.fn.attr=Up),Wp&&(zp.fn.removeAttr=Wp),Qp&&(zp.fn.hide=Qp),eh&&(zp.fn.show=eh),ch&&(zp.fn.parents=ch),Gp&&(zp.fn.dataset=Gp),qp&&(zp.fn.val=qp),ih&&(zp.fn.text=ih),oh&&(zp.fn.html=oh),dh&&(zp.fn.children=dh),ph&&(zp.fn.remove=ph),fh&&(zp.fn.find=fh),Xp&&(zp.fn.width=Xp),Zp&&(zp.fn.height=Zp),rh&&(zp.fn.filter=rh),hh&&(zp.fn.empty=hh);var vR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e);return 0===(t=t.filter(function(e){return!!sd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},yR=function(e,t){return yR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},yR(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function mR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}yR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var bR=function(){return bR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bR.apply(this,arguments)};function wR(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}u((r=r.apply(e,[])).next())})}function ER(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function DR(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function CR(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function xR(e){var t=CR(Rf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!_f.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==$f.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!sd.isText(o[0])&&(Ad.setNodes(e,{type:"paragraph"}),!0)}var SR={renderElems:[kP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[vR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){xR(r)||t(e)},r.deleteForward=function(e){xR(r)||n(e)},r}},AR=/"/g,OR=KP("".replace),kR=function(e,t,n,r){var o=FI(nj(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+OR(FI(r),AR,""")+'"'),i+">"+o+"</"+t+">"},BR=function(e){return NP(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function FR(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function TR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}tI({target:"String",proto:!0,forced:BR("bold")},{bold:function(){return kR(this,"b","","")}}),tI({target:"String",proto:!0,forced:BR("italics")},{italics:function(){return kR(this,"i","","")}}),tI({target:"String",proto:!0,forced:BR("sub")},{sub:function(){return kR(this,"sub","","")}}),tI({target:"String",proto:!0,forced:BR("sup")},{sup:function(){return kR(this,"sup","","")}});var _R={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},PR=Gj("span").classList,jR=PR&&PR.constructor&&PR.constructor.prototype,NR=jR===Object.prototype?void 0:jR,IR=function(e,t){var n=[][e];return!!n&&NP(function(){n.call(null,t||function(){throw 1},1)})},LR=CI.forEach,RR=IR("forEach")?[].forEach:function(e){return LR(this,e,arguments.length>1?arguments[1]:void 0)},MR=function(e){if(e&&e.forEach!==RR)try{nN(e,"forEach",RR)}catch(t){e.forEach=RR}};for(var zR in _R)_R[zR]&&MR(jP[zR]&&jP[zR].prototype);function HR(e,t){return null==e.selection||!!CR(Rf.nodes(e,{match:function(t){return"pre"===FO.getNodeType(t)||!!Rf.isVoid(e,t)},universal:!0}),1)[0]}function VR(e,t){Object.keys(t).forEach(function(t){"text"!==t&&Rf.removeMark(e,t)})}MR(NR),tI({target:"Object",stat:!0,forced:NP(function(){NI(1)})},{keys:function(e){return NI(Bj(e))}});var $R=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Rf.marks(e);return n?n[t]:!!CR(Rf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return HR(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach(function(t){return e.removeMark(t)}))},e}(),UR='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',WR='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',GR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=sP("textStyle.bold"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',t.hotkey="mod+b",t}return mR(t,e),t}($R),qR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=sP("textStyle.code"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',t.hotkey="mod+e",t}return mR(t,e),t}($R),KR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=sP("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return mR(t,e),t}($R),YR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=sP("textStyle.through"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',t.hotkey="mod+shift+x",t}return mR(t,e),t}($R),XR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=sP("textStyle.underline"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',t.hotkey="mod+u",t}return mR(t,e),t}($R),ZR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=sP("textStyle.sub"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return mR(t,e),t}($R),JR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=sP("textStyle.sup"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return mR(t,e),t}($R),QR=function(){function e(){this.title=sP("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return HR(e)},e.prototype.exec=function(e,t){var n,r,o=Rf.nodes(e,{match:function(e){return sd.isText(e)},universal:!0});try{for(var i=DR(o),a=i.next();!a.done;a=i.next())VR(e,a.value[0])}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),eM={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Fg("strong",null,c)),a&&(c=Fg("code",null,c)),o&&(c=Fg("em",null,c)),i&&(c=Fg("u",null,c)),u&&(c=Fg("s",null,c)),s&&(c=Fg("sub",null,c)),l&&(c=Fg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new GR}},{key:"underline",factory:function(){return new XR}},{key:"italic",factory:function(){return new KR}},{key:"through",factory:function(){return new YR}},{key:"code",factory:function(){return new qR}},{key:"sub",factory:function(){return new ZR}},{key:"sup",factory:function(){return new JR}},{key:"clearStyle",factory:function(){return new QR}}],styleToHtml:function(e,t){if(!sd.isText(e))return t;if(dR(t))return FR(e,t);var n=zp(t);if("br"===hR(n))return FR(e,"<br>");var r=n.html();return r=FR(e,r),n.html(r),pR(n)},parseStyleHtml:function(e,t,n){var r=zp(e);if(!sd.isText(t))return t;var o=t;return TR(r,"b,strong")&&(o.bold=!0),TR(r,"i,em")&&(o.italic=!0),TR(r,"u")&&(o.underline=!0),TR(r,"s,strike")&&(o.through=!0),TR(r,"sub")&&(o.sub=!0),TR(r,"sup")&&(o.sup=!0),TR(r,"code")&&(o.code=!0),o}};function tM(e){return function(t,n,r){return Fg("h"+e,null,n)}}var nM={type:"header1",renderElem:tM(1)},rM={type:"header2",renderElem:tM(2)},oM={type:"header3",renderElem:tM(3)},iM={type:"header4",renderElem:tM(4)},aM={type:"header5",renderElem:tM(5)},uM=xN.PROPER,sM=RegExp.prototype,lM=sM.toString,cM=KP(TI),fM=NP(function(){return"/a/b"!=lM.call({source:"a",flags:"b"})}),dM=uM&&"toString"!=lM.name;(fM||dM)&&SN(RegExp.prototype,"toString",function(){var e=Jj(this),t=FI(e.source),n=e.flags;return"/"+t+"/"+FI(void 0===n&&uj(sM,e)&&!("flags"in sM)?cM(e):n)},{unsafe:!0});var pM,hM=jP.TypeError,gM=function(e){if(WL(e))throw hM("The method doesn't accept regular expressions");return e},vM=zj("match"),yM=function(e){var t=/./;try{"/./"[e](t)}catch(cP){try{return t[vM]=!1,"/./"[e](t)}catch(n){}}return!1},mM=Yj.f,bM=KP("".startsWith),wM=KP("".slice),EM=Math.min,DM=yM("startsWith");function CM(e){var t=CR(Rf.nodes(e,{match:function(e){return FO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=CR(t,1)[0];return FO.getNodeType(n)}function xM(e){return null==e.selection||!CR(Rf.nodes(e,{match:function(e){var t=FO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function SM(e,t){t&&Ad.setNodes(e,{type:t})}tI({target:"String",proto:!0,forced:!(!DM&&(pM=mM(String.prototype,"startsWith"),pM&&!pM.writable)||DM)},{startsWith:function(e){var t=FI(nj(this));gM(e);var n=PN(EM(arguments.length>1?arguments[1]:void 0,t.length)),r=FI(e);return bM?bM(t,r,n):wM(t,n,n+r.length)===r}});var AM=function(){function e(){this.title=sP("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:sP("header.text")}],n=this.getValue(e).toString();return t.forEach(function(e){e.value===n?e.selected=!0:delete e.selected}),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return CM(e)},e.prototype.isDisabled=function(e){return xM(e)},e.prototype.exec=function(e,t){SM(e,t.toString())},e}(),OM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return CM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return xM(e)},e.prototype.exec=function(e,t){var n=this.type;SM(e,t===n?"paragraph":n)},e}(),kM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return mR(t,e),t}(OM),BM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return mR(t,e),t}(OM),FM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return mR(t,e),t}(OM),TM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return mR(t,e),t}(OM),_M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return mR(t,e),t}(OM),PM={key:"headerSelect",factory:function(){return new AM}},jM={key:"header1",factory:function(){return new kM}},NM={key:"header2",factory:function(){return new BM}},IM={key:"header3",factory:function(){return new FM}},LM={key:"header4",factory:function(){return new TM}},RM={key:"header5",factory:function(){return new _M}};function MM(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function zM(e){return function(t,n,r){var o=zp(t);return 0===(n=n.filter(function(e){return!!sd.isText(e)||!!r.isInline(e)})).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var HM={renderElems:[nM,rM,oM,iM,aM],elemsToHtml:[{type:"header1",elemToHtml:MM(1)},{type:"header2",elemToHtml:MM(2)},{type:"header3",elemToHtml:MM(3)},{type:"header4",elemToHtml:MM(4)},{type:"header5",elemToHtml:MM(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:zM(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:zM(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:zM(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:zM(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:zM(5)}],menus:[PM,jM,NM,IM,LM,RM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=CR(Rf.nodes(n,{match:function(e){return FO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&FO.isSelectionAtLineEnd(e,r[1])?Ad.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},VM=Object.assign,$M=Object.defineProperty,UM=KP([].concat),WM=!VM||NP(function(){if(IP&&1!==VM({b:1},VM($M({},"a",{enumerable:!0,get:function(){$M(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=VM({},e)[n]||NI(VM({},t)).join("")!=r})?function(e,t){for(var n=Bj(e),r=arguments.length,o=1,i=$N.f,a=VP.f;r>o;)for(var u,s=ej(arguments[o++]),l=i?UM(NI(s),i(s)):NI(s),c=l.length,f=0;c>f;)u=l[f++],IP&&!RP(a,s,u)||(n[u]=s[u]);return n}:VM;function GM(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}tI({target:"Object",stat:!0,forced:Object.assign!==WM},{assign:WM});var qM={selector:"font",preParseHtml:function(e){var t=zp(e);if("font"!==hR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},KM=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Rf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!CR(Rf.nodes(e,{match:function(t){return"pre"===FO.getNodeType(t)||!!Rf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=zp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=zp(r).attr("data-value");"0"===o?Rf.removeMark(e,t):Rf.addMark(e,t,o)}}),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach(function(e){var t=zp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=zp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)});var a="";"color"===t&&(a=sP("color.default")),"bgColor"===t&&(a=sP("color.clear"));var u=zp('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),YM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("color.color"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',t.mark="color",t}return mR(t,e),t}(KM),XM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("color.bgColor"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',t.mark="bgColor",t}return mR(t,e),t}(KM),ZM=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],JM={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&GM(i,{color:r}),o&&GM(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!sd.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((dR(t)||"span"!==hR(n=zp(t)))&&(n=zp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),pR(n)):t},preParseHtml:[qM],parseStyleHtml:function(e,t,n){var r=zp(e);if(!sd.isText(t))return t;var o=t,i=gR(r,"color");i&&(o.color=i);var a=gR(r,"background-color");return a||(a=gR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new YM},config:{colors:ZM}},{key:"bgColor",factory:function(){return new XM},config:{colors:ZM}}]},QM=/^(?:\w+:)?\/\/(\S+)$/,ez=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,tz=/^[^\s\.]+\.\S{2,}$/,nz=IN.includes;function rz(e){return void 0===e&&(e="r"),e+"-"+Nh()}function oz(e){return e.replace(/</g,"<").replace(/>/g,">")}function iz(e,t,n,r){return wR(this,0,void 0,function(){var o,i;return ER(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function az(e,t,n){return wR(this,0,void 0,function(){var r;return ER(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function uz(e){return null==e.selection||!!FO.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function sz(e,t){return{type:"link",url:oz(e),children:t?[{text:t}]:[]}}function lz(e,t,n){return wR(this,0,void 0,function(){var r,o,i;return ER(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),uz(e)?[2]:[4,iz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,az("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(td.isCollapsed(o)?(e.insertText(" "),i=sz(r,t),Ad.insertNodes(e,i),e.insertFragment([{text:" "}])):Rf.string(e,o)!==t?(e.deleteFragment(),i=sz(r,t),Ad.insertNodes(e,i)):(i=sz(r),Ad.wrapNodes(e,i,{split:!0}),Ad.collapse(e,{edge:"end"}))),[2]}})})}tI({target:"Array",proto:!0},{includes:function(e){return nz(this,e,arguments.length>1?arguments[1]:void 0)}}),HL("includes");var cz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Fg("a",{href:o,target:void 0===i?"_blank":i},t)}},fz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e);return 0===(t=t.filter(function(e){return!!sd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function dz(){return rz("w-e-insert-link")}var pz=function(){function e(){this.title=sP("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=dz(),this.urlInputId=dz(),this.buttonId=dz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return uz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=CR(YT(sP("link.text"),r),2),u=a[0],s=zp(a[1]),l=CR(YT(sP("link.url"),o),2),c=l[0],f=zp(l[1]),d=CR(XT(i,sP("common.ok")),1)[0];if(null==this.$content){var p=zp("<div></div>");p.on("click","#"+i,function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();lz(e,n,i),e.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||td.isCollapsed(t))s.val("");else{var g=Rf.string(e,t);s.val(g)}return f.val(""),setTimeout(function(){s.focus()}),h[0]},e}();function hz(){return rz("w-e-update-link")}var gz=function(){function e(){this.title=sP("link.edit"),this.iconSvg=UR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=hz(),this.buttonId=hz()}return e.prototype.getSelectedLinkElem=function(e){var t=FO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return FO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=CR(YT(sP("link.url"),t),2),o=r[0],i=zp(r[1]),a=CR(XT(n,sP("common.ok")),1)[0];if(null==this.$content){var u=zp("<div></div>");u.on("click","button",function(n){n.preventDefault(),e.restoreSelection();var r=FO.getSelectedNodeByType(e,"link"),o=r?$f.string(r):"",i=u.find("#"+t).val();!function(e,t,n){wR(this,0,void 0,function(){var r,o;return ER(this,function(i){switch(i.label){case 0:return n?[4,iz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,az("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:oz(r)},Ad.setNodes(e,o,{match:function(e){return FO.checkNodeType(e,"link")}}),[2]}})})}(e,o,i),e.hidePanelOrModal()}),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout(function(){i.focus()}),s[0]},e}(),vz=function(){function e(){this.title=sP("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==FO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Ad.unwrapNodes(e,{match:function(e){return FO.checkNodeType(e,"link")}})},e}(),yz=function(){function e(){this.title=sP("link.view"),this.iconSvg=WR,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=FO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),mz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},bz={renderElems:[cz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[fz],menus:[{key:"insertLink",factory:function(){return new pz},config:mz},{key:"editLink",factory:function(){return new gz},config:mz},{key:"unLink",factory:function(){return new vz}},{key:"viewLink",factory:function(){return new yz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(QM);if(!t)return!1;var n=t[1];return!(!n||!ez.test(n)&&!tz.test(n))}(t)){if(!uz(o)){var r=o.selection;if(null!=r){var i=Rf.string(o,r);lz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=CR(e,2),n=t[0],i=t[1];return"link"!==FO.getNodeType(n)?r([n,i]):""===$f.string(n)?Ad.removeNodes(o,{at:i}):r([n,i])},o}},wz=KP(1..valueOf),Ez=jP.RangeError,Dz=jP.RangeError,Cz=jP.String,xz=Math.floor,Sz=KP(function(e){var t=FI(nj(this)),n="",r=kN(e);if(r<0||r==1/0)throw Ez("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),Az=KP("".slice),Oz=KP(1..toFixed),kz=function(e,t,n){return 0===t?n:t%2==1?kz(e,t-1,n*e):kz(e*e,t/2,n)},Bz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=xz(o/1e7)},Fz=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=xz(r/t),r=r%t*1e7},Tz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Cz(e[t]);n=""===n?r:n+Sz("0",7-r.length)+r}return n};function _z(e,t){return"w-e-image-container-"+FO.findKey(e,t).id}tI({target:"Number",proto:!0,forced:NP(function(){return"0.000"!==Oz(8e-5,3)||"1"!==Oz(.9,0)||"1.25"!==Oz(1.255,2)||"1000000000000000128"!==Oz(0xde0b6b3a7640080,0)})||!NP(function(){Oz({})})},{toFixed:function(e){var t,n,r,o,i=wz(this),a=kN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Dz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Cz(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*kz(2,69,1))-69)<0?i*kz(2,-t,1):i/kz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Bz(u,0,n),r=a;r>=7;)Bz(u,1e7,0),r-=7;for(Bz(u,kz(10,r,1),0),r=t-1;r>=23;)Fz(u,1<<23),r-=23;Fz(u,1<<r),Bz(u,1,1),Fz(u,2),l=Tz(u)}else Bz(u,0,n),Bz(u,1<<-t,0),l=Tz(u)+Sz("0",a);return a>0?s+((o=l.length)<=a?"0."+Sz("0",a-o)+l:Az(l,0,o-a)+"."+Az(l,o-a)):s+l}});var Pz={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=FO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,D,C,x=Fg("img",{style:v,src:o,alt:a,"data-href":s}),S=n.isDisabled();return g&&!S?function(e,t,n,r){var o=zp("body"),i=_z(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Zh(function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))},100);function h(n){if(o.off("mousemove",p),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:bR(bR({},t.style),{width:r+"px",height:i+"px"})};Ad.setNodes(e,a,{at:FO.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),Fg("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=zp(t.target);n.hasClass("w-e-image-dragger")&&(t.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(f=!0),function(t){d=function(){var e=zp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",p),o.on("mouseup",h);var r=FO.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,Fg("div",{className:"w-e-image-dragger left-top"}),Fg("div",{className:"w-e-image-dragger right-top"}),Fg("div",{className:"w-e-image-dragger left-bottom"}),Fg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,x,{width:d,height:h}):(y=n,m=e,b=x,D=(w={width:d,height:h}).height,C={},(E=w.width)&&(C.width=E),D&&(C.height=D),Fg("div",{id:_z(y,m),style:C,className:"w-e-image-container"},b))}},jz={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:gR(r,"width"),height:gR(r,"height")},children:[{text:""}]}}};function Nz(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),wR(this,0,void 0,function(){var i,a;return ER(this,function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function Iz(e,t,n){return wR(this,0,void 0,function(){var r;return ER(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Lz(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),wR(this,0,void 0,function(){var o,i,a;return ER(this,function(u){switch(u.label){case 0:return[4,Nz("insertImage",e,t,n,r)];case 1:return u.sent()?[4,Iz("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:oz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),FO.getSelectedNodeByType(e,"image")&&e.move(1),Rz(e)||(Ad.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Rz(e){var t=e.selection;return null==t||!td.isCollapsed(t)||!!CR(Rf.nodes(e,{match:function(t){var n=FO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Rf.isVoid(e,t)},universal:!0}),1)[0]}function Mz(){return rz("w-e-insert-image")}var zz=function(){function e(){this.title=sP("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Mz(),this.altInputId=Mz(),this.hrefInputId=Mz(),this.buttonId=Mz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Rz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=CR(YT(sP("image.src"),r),2),s=u[0],l=zp(u[1]),c=CR(YT(sP("image.desc"),o),2),f=c[0],d=zp(c[1]),p=CR(YT(sP("image.link"),i),2),h=p[0],g=zp(p[1]),v=CR(XT(a,sP("common.ok")),1)[0];if(null==this.$content){var y=zp("<div></div>");y.on("click","#"+a,function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()}),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout(function(){l.focus()}),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||Lz(e,t,n,r))},e}(),Hz=function(){function e(){this.title=sP("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==FO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Ad.removeNodes(e,{match:function(e){return FO.checkNodeType(e,"image")}})},e}();function Vz(){return rz("w-e-edit-image")}var $z=function(){function e(){this.title=sP("image.edit"),this.iconSvg=UR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Vz(),this.altInputId=Vz(),this.hrefInputId=Vz(),this.buttonId=Vz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return FO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||null==FO.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=CR(YT(sP("image.src"),r),2),l=s[0],c=zp(s[1]),f=CR(YT(sP("image.desc"),o),2),d=f[0],p=zp(f[1]),h=CR(YT(sP("image.link"),i),2),g=h[0],v=zp(h[1]),y=CR(XT(a,sP("common.ok")),1)[0];if(null==this.$content){var m=zp("<div></div>");m.on("click","#"+a,function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()}),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,D=w.alt,C=void 0===D?"":D,x=w.href,S=void 0===x?"":x;return c.val(E),p.val(C),v.val(S),setTimeout(function(){c.focus()}),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),wR(this,0,void 0,function(){var i,a,u,s,l,c;return ER(this,function(f){switch(f.label){case 0:return[4,Nz("editImage",e,t,n,r)];case 1:return f.sent()?[4,Iz("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=FO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:bR(bR({},void 0===u?{}:u),o)},Ad.setNodes(e,s,{match:function(e){return FO.checkNodeType(e,"image")}}),l=FO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}})})}(e,t,n,r,o))},e}(),Uz=function(){function e(){this.title=sP("image.viewLink"),this.iconSvg=WR,this.tag="button"}return e.prototype.getValue=function(e){var t=FO.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),Wz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return FO.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=FO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:bR(bR({},void 0===o?{}:o),{width:this.value,height:""})};Ad.setNodes(e,i,{match:function(e){return FO.checkNodeType(e,"image")}})}}},e}(),Gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return mR(t,e),t}(Wz),qz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return mR(t,e),t}(Wz),Kz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return mR(t,e),t}(Wz),Yz={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Xz={renderElems:[Pz],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[jz],menus:[{key:"insertImage",factory:function(){return new zz},config:Yz},{key:"deleteImage",factory:function(){return new Hz}},{key:"editImage",factory:function(){return new $z},config:Yz},{key:"viewImageLink",factory:function(){return new Uz}},{key:"imageWidth30",factory:function(){return new Gz}},{key:"imageWidth50",factory:function(){return new qz}},{key:"imageWidth100",factory:function(){return new Kz}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},Zz={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),Fg("div",{style:{margin:"5px 0"}},Fg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Fg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=FO.findPath(n,e),o={checked:t.target.checked};Ad.setNodes(n,o,{at:r})}}})),Fg("span",null,t))}},Jz=function(){function e(){this.title=sP("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!FO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!FO.getSelectedElems(e).some(function(t){if(Rf.isVoid(e,t)&&Rf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0})},e.prototype.exec=function(e,t){var n=this.isActive(e);Ad.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Qz={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=zp(e);0===(t=t.filter(function(e){return!!sd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},eH={renderElems:[Zz],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=zp(e).find("li"),n=zp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[Qz],menus:[{key:"todo",factory:function(){return new Jz}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&td.isCollapsed(r)){var o=FO.getSelectedNodeByType(e,"todo");if(o&&0===$f.string(o).length)return void Ad.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},tH={type:"blockquote",renderElem:function(e,t,n){return Fg("blockquote",null,t)}},nH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e);return 0===(t=t.filter(function(e){return!!sd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},rH=function(){function e(){this.title=sP("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!FO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!CR(Rf.nodes(e,{match:function(e){var t=FO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Ad.setNodes(e,{type:n},{mode:"highest"})}},e}(),oH={key:"blockquote",factory:function(){return new rH}},iH=KP([].slice),aH=SI("slice"),uH=zj("species"),sH=jP.Array,lH=Math.max;tI({target:"Array",proto:!0,forced:!aH},{slice:function(e,t){var n,r,o,i=rj(this),a=jN(i),u=TN(e,a),s=TN(void 0===t?a:t,a);if(rI(i)&&(n=i.constructor,(yI(n)&&(n===sH||rI(n.prototype))||ij(n)&&null===(n=n[uH]))&&(n=void 0),n===sH||void 0===n))return iH(i,u,s);for(r=new(void 0===n?sH:n)(lH(s-u,0)),o=0;u<s;u++,o++)u in i&&KL(r,o,i[u]);return r.length=o,r}});var cH={renderElems:[tH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[nH],menus:[oH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=CR(Rf.nodes(e,{match:function(e){return FO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=FO.findPath(e,a),s=Rf.end(e,u);if(Zf.equals(s,o.focus)){var l=$f.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Ad.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},fH=function(){function e(){this.title=sP("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!CR(Rf.nodes(e,{match:function(t){return"pre"===FO.getNodeType(t)||!!Rf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=zp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",function(t){var n=t.target;if(null!=n){t.preventDefault();var r=zp(n).text();e.insertText(r)}}),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach(function(e){var t=zp("<li>"+e+"</li>");n.append(t)}),n[0]},e}(),dH={menus:[{key:"emotion",factory:function(){return new fH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},pH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},hH={selector:"font",preParseHtml:function(e){var t=zp(e);if("font"!==hR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",pH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},gH=KP("".indexOf);tI({target:"String",proto:!0,forced:!yM("includes")},{includes:function(e){return!!~gH(FI(nj(this)),FI(gM(e)),arguments.length>1?arguments[1]:void 0)}});var vH,yH,mH=function(e){return e&&e.Math==Math&&e},bH=mH("object"==typeof globalThis&&globalThis)||mH("object"==typeof window&&window)||mH("object"==typeof self&&self)||mH("object"==typeof BP&&BP)||function(){return this}()||Function("return this")(),wH=Function.prototype,EH=wH.apply,DH=wH.bind,CH=wH.call,xH="object"==typeof Reflect&&Reflect.apply||(DH?CH.bind(EH):function(){return CH.apply(EH,arguments)}),SH=Function.prototype,AH=SH.bind,OH=SH.call,kH=AH&&AH.bind(OH),BH=AH?function(e){return e&&kH(OH,e)}:function(e){return e&&function(){return OH.apply(e,arguments)}},FH=function(e){return"function"==typeof e},TH=function(e){try{return!!e()}catch(t){return!0}},_H=!TH(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),PH=Function.prototype.call,jH=PH.bind?PH.bind(PH):function(){return PH.apply(PH,arguments)},NH={}.propertyIsEnumerable,IH=Object.getOwnPropertyDescriptor,LH=IH&&!NH.call({1:2},1)?function(e){var t=IH(this,e);return!!t&&t.enumerable}:NH,RH={f:LH},MH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zH=BH({}.toString),HH=BH("".slice),VH=function(e){return HH(zH(e),8,-1)},$H=bH.Object,UH=BH("".split),WH=TH(function(){return!$H("z").propertyIsEnumerable(0)})?function(e){return"String"==VH(e)?UH(e,""):$H(e)}:$H,GH=bH.TypeError,qH=function(e){if(null==e)throw GH("Can't call method on "+e);return e},KH=function(e){return WH(qH(e))},YH=function(e){return"object"==typeof e?null!==e:FH(e)},XH={},ZH=function(e){return FH(e)?e:void 0},JH=function(e,t){return arguments.length<2?ZH(XH[e])||ZH(bH[e]):XH[e]&&XH[e][t]||bH[e]&&bH[e][t]},QH=BH({}.isPrototypeOf),eV=JH("navigator","userAgent")||"",tV=bH.process,nV=bH.Deno,rV=tV&&tV.versions||nV&&nV.version,oV=rV&&rV.v8;oV&&(yH=(vH=oV.split("."))[0]>0&&vH[0]<4?1:+(vH[0]+vH[1])),!yH&&eV&&(!(vH=eV.match(/Edge\/(\d+)/))||vH[1]>=74)&&(vH=eV.match(/Chrome\/(\d+)/))&&(yH=+vH[1]);var iV=yH,aV=!!Object.getOwnPropertySymbols&&!TH(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&iV&&iV<41}),uV=aV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,sV=bH.Object,lV=uV?function(e){return"symbol"==typeof e}:function(e){var t=JH("Symbol");return FH(t)&&QH(t.prototype,sV(e))},cV=bH.String,fV=bH.TypeError,dV=function(e){if(FH(e))return e;throw fV(function(e){try{return cV(e)}catch(t){return"Object"}}(e)+" is not a function")},pV=bH.TypeError,hV=Object.defineProperty,gV=bH["__core-js_shared__"]||function(e,t){try{hV(bH,e,{value:t,configurable:!0,writable:!0})}catch(cP){bH[e]=t}return t}("__core-js_shared__",{}),vV=FP(function(e){(e.exports=function(e,t){return gV[e]||(gV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),yV=bH.Object,mV=function(e){return yV(qH(e))},bV=BH({}.hasOwnProperty),wV=Object.hasOwn||function(e,t){return bV(mV(e),t)},EV=0,DV=Math.random(),CV=BH(1..toString),xV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+CV(++EV+DV,36)},SV=vV("wks"),AV=bH.Symbol,OV=AV&&AV.for,kV=uV?AV:AV&&AV.withoutSetter||xV,BV=function(e){if(!wV(SV,e)||!aV&&"string"!=typeof SV[e]){var t="Symbol."+e;aV&&wV(AV,e)?SV[e]=AV[e]:SV[e]=uV&&OV?OV(t):kV(t)}return SV[e]},FV=bH.TypeError,TV=BV("toPrimitive"),_V=function(e){var t=function(e){if(!YH(e)||lV(e))return e;var t,n,r=null==(t=e[TV])?void 0:dV(t);if(r){if(n=jH(r,e,"string"),!YH(n)||lV(n))return n;throw FV("Can't convert object to primitive value")}return function(e){var t,n;if(FH(t=e.toString)&&!YH(n=jH(t,e)))return n;if(FH(t=e.valueOf)&&!YH(n=jH(t,e)))return n;throw pV("Can't convert object to primitive value")}(e)}(e);return lV(t)?t:t+""},PV=bH.document,jV=YH(PV)&&YH(PV.createElement),NV=function(e){return jV?PV.createElement(e):{}},IV=!_H&&!TH(function(){return 7!=Object.defineProperty(NV("div"),"a",{get:function(){return 7}}).a}),LV=Object.getOwnPropertyDescriptor,RV={f:_H?LV:function(e,t){if(e=KH(e),t=_V(t),IV)try{return LV(e,t)}catch(n){}if(wV(e,t))return MH(!jH(RH.f,e,t),e[t])}},MV=/#|\.prototype\./,zV=function(e,t){var n=VV[HV(e)];return n==UV||n!=$V&&(FH(t)?TH(t):!!t)},HV=zV.normalize=function(e){return String(e).replace(MV,".").toLowerCase()},VV=zV.data={},$V=zV.NATIVE="N",UV=zV.POLYFILL="P",WV=zV,GV=BH(BH.bind),qV=function(e,t){return dV(e),void 0===t?e:GV?GV(e,t):function(){return e.apply(t,arguments)}},KV=bH.String,YV=bH.TypeError,XV=function(e){if(YH(e))return e;throw YV(KV(e)+" is not an object")},ZV=bH.TypeError,JV=Object.defineProperty,QV={f:_H?JV:function(e,t,n){if(XV(e),t=_V(t),XV(n),IV)try{return JV(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ZV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},e$=_H?function(e,t,n){return QV.f(e,t,MH(1,n))}:function(e,t,n){return e[t]=n,e},t$=RV.f,n$=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return xH(e,this,arguments)};return t.prototype=e.prototype,t},r$=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?bH:d?bH[c]:(bH[c]||{}).prototype,g=f?XH:XH[c]||e$(XH,c,{})[c],v=g.prototype;for(o in t)n=!WV(f?o:c+(d?".":"#")+o,e.forced)&&h&&wV(h,o),a=g[o],n&&(u=e.noTargetGet?(l=t$(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?qV(i,bH):e.wrap&&n?n$(i):p&&FH(i)?BH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&e$(s,"sham",!0),e$(g,o,s),p&&(wV(XH,r=c+"Prototype")||e$(XH,r,{}),e$(XH[r],o,i),e.real&&v&&!v[o]&&e$(v,o,i)))},o$=Array.isArray||function(e){return"Array"==VH(e)},i$=Math.ceil,a$=Math.floor,u$=function(e){var t=+e;return t!=t||0===t?0:(t>0?a$:i$)(t)},s$=Math.min,l$=function(e){return(t=e.length)>0?s$(u$(t),9007199254740991):0;var t},c$=function(e,t,n){var r=_V(t);r in e?QV.f(e,r,MH(0,n)):e[r]=n},f$={};f$[BV("toStringTag")]="z";var d$="[object z]"===String(f$),p$=BV("toStringTag"),h$=bH.Object,g$="Arguments"==VH(function(){return arguments}()),v$=d$?VH:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=h$(e),p$))?n:g$?VH(t):"Object"==(r=VH(t))&&FH(t.callee)?"Arguments":r},y$=BH(Function.toString);FH(gV.inspectSource)||(gV.inspectSource=function(e){return y$(e)});var m$=gV.inspectSource,b$=function(){},w$=[],E$=JH("Reflect","construct"),D$=/^\s*(?:class|function)\b/,C$=BH(D$.exec),x$=!D$.exec(b$),S$=function(e){if(!FH(e))return!1;try{return E$(b$,w$,e),!0}catch(t){return!1}},A$=!E$||TH(function(){var e;return S$(S$.call)||!S$(Object)||!S$(function(){e=!0})||e})?function(e){if(!FH(e))return!1;switch(v$(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return x$||!!C$(D$,m$(e))}:S$,O$=BV("species"),k$=bH.Array,B$=function(e,t){return new(o$(n=e)&&(r=n.constructor,(A$(r)&&(r===k$||o$(r.prototype))||YH(r)&&null===(r=r[O$]))&&(r=void 0)),void 0===r?k$:r)(0===t?0:t);var n,r},F$=BV("species"),T$=BV("isConcatSpreadable"),_$=bH.TypeError,P$=iV>=51||!TH(function(){var e=[];return e[T$]=!1,e.concat()[0]!==e}),j$=iV>=51||!TH(function(){var e=[];return(e.constructor={})[F$]=function(){return{foo:1}},1!==e.concat(Boolean).foo}),N$=function(e){if(!YH(e))return!1;var t=e[T$];return void 0!==t?!!t:o$(e)};r$({target:"Array",proto:!0,forced:!P$||!j$},{concat:function(e){var t,n,r,o,i,a=mV(this),u=B$(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(N$(i=-1===t?a:arguments[t])){if(s+(o=l$(i))>9007199254740991)throw _$("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&c$(u,s,i[n])}else{if(s>=9007199254740991)throw _$("Maximum allowed index exceeded");c$(u,s++,i)}return u.length=s,u}});var I$,L$=bH.String,R$=function(e){if("Symbol"===v$(e))throw TypeError("Cannot convert a Symbol value to a string");return L$(e)},M$=Math.max,z$=Math.min,H$=function(e,t){var n=u$(e);return n<0?M$(n+t,0):z$(n,t)},V$={indexOf:function(e){return function(t,n,r){var o,i=KH(t),a=l$(i),u=H$(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1)},$$={},U$=V$.indexOf,W$=BH([].push),G$=function(e,t){var n,r=KH(e),o=0,i=[];for(n in r)!wV($$,n)&&wV(r,n)&&W$(i,n);for(;t.length>o;)wV(r,n=t[o++])&&(~U$(i,n)||W$(i,n));return i},q$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],K$=Object.keys||function(e){return G$(e,q$)},Y$=_H?Object.defineProperties:function(e,t){XV(e);for(var n,r=KH(t),o=K$(t),i=o.length,a=0;i>a;)QV.f(e,n=o[a++],r[n]);return e},X$=JH("document","documentElement"),Z$=vV("keys"),J$=function(e){return Z$[e]||(Z$[e]=xV(e))},Q$=J$("IE_PROTO"),eU=function(){},tU=function(e){return"<script>"+e+"<\/script>"},nU=function(e){e.write(tU("")),e.close();var t=e.parentWindow.Object;return e=null,t},rU=function(){try{I$=new ActiveXObject("htmlfile")}catch(r){}var e,t;rU="undefined"!=typeof document?document.domain&&I$?nU(I$):((t=NV("iframe")).style.display="none",X$.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(tU("document.F=Object")),e.close(),e.F):nU(I$);for(var n=q$.length;n--;)delete rU.prototype[q$[n]];return rU()};$$[Q$]=!0;var oU,iU,aU,uU=Object.create||function(e,t){var n;return null!==e?(eU.prototype=XV(e),n=new eU,eU.prototype=null,n[Q$]=e):n=rU(),void 0===t?n:Y$(n,t)},sU=q$.concat("length","prototype"),lU={f:Object.getOwnPropertyNames||function(e){return G$(e,sU)}},cU=bH.Array,fU=Math.max,dU=lU.f,pU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hU={f:function(e){return pU&&"Window"==VH(e)?function(e){try{return dU(e)}catch(t){return function(e){for(var t=l$(e),n=H$(void 0,t),r=H$(t,t),o=cU(fU(r-n,0)),i=0;n<r;n++,i++)c$(o,i,e[n]);return o.length=i,o}(pU)}}(e):dU(KH(e))}},gU={f:Object.getOwnPropertySymbols},vU=BH([].slice),yU=function(e,t,n,r){e$(e,t,n)},mU={f:BV},bU=QV.f,wU=function(e){var t=XH.Symbol||(XH.Symbol={});wV(t,e)||bU(t,e,{value:mU.f(e)})},EU=d$?{}.toString:function(){return"[object "+v$(this)+"]"},DU=QV.f,CU=BV("toStringTag"),xU=function(e,t,n,r){if(e){var o=n?e:e.prototype;wV(o,CU)||DU(o,CU,{configurable:!0,value:t}),r&&!d$&&e$(o,"toString",EU)}},SU=bH.WeakMap,AU=FH(SU)&&/native code/.test(m$(SU)),OU=bH.TypeError,kU=bH.WeakMap;if(AU||gV.state){var BU=gV.state||(gV.state=new kU),FU=BH(BU.get),TU=BH(BU.has),_U=BH(BU.set);oU=function(e,t){if(TU(BU,e))throw new OU("Object already initialized");return t.facade=e,_U(BU,e,t),t},iU=function(e){return FU(BU,e)||{}},aU=function(e){return TU(BU,e)}}else{var PU=J$("state");$$[PU]=!0,oU=function(e,t){if(wV(e,PU))throw new OU("Object already initialized");return t.facade=e,e$(e,PU,t),t},iU=function(e){return wV(e,PU)?e[PU]:{}},aU=function(e){return wV(e,PU)}}var jU={set:oU,get:iU,has:aU,enforce:function(e){return aU(e)?iU(e):oU(e,{})},getterFor:function(e){return function(t){var n;if(!YH(t)||(n=iU(t)).type!==e)throw OU("Incompatible receiver, "+e+" required");return n}}},NU=BH([].push),IU=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=mV(s),g=WH(h),v=qV(l,c),y=l$(g),m=0,b=f||B$,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:NU(w,d)}else switch(e){case 4:return!1;case 7:NU(w,d)}return i?-1:r||o?o:w}},LU=[IU(0),IU(1),IU(2),IU(3),IU(4),IU(5),IU(6),IU(7)][0],RU=J$("hidden"),MU=BV("toPrimitive"),zU=jU.set,HU=jU.getterFor("Symbol"),VU=Object.prototype,$U=bH.Symbol,UU=$U&&$U.prototype,WU=bH.TypeError,GU=bH.QObject,qU=JH("JSON","stringify"),KU=RV.f,YU=QV.f,XU=hU.f,ZU=RH.f,JU=BH([].push),QU=vV("symbols"),eW=vV("op-symbols"),tW=vV("string-to-symbol-registry"),nW=vV("symbol-to-string-registry"),rW=vV("wks"),oW=!GU||!GU.prototype||!GU.prototype.findChild,iW=_H&&TH(function(){return 7!=uU(YU({},"a",{get:function(){return YU(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=KU(VU,t);r&&delete VU[t],YU(e,t,n),r&&e!==VU&&YU(VU,t,r)}:YU,aW=function(e,t){var n=QU[e]=uU(UU);return zU(n,{type:"Symbol",tag:e,description:t}),_H||(n.description=t),n},uW=function(e,t,n){e===VU&&uW(eW,t,n),XV(e);var r=_V(t);return XV(n),wV(QU,r)?(n.enumerable?(wV(e,RU)&&e[RU][r]&&(e[RU][r]=!1),n=uU(n,{enumerable:MH(0,!1)})):(wV(e,RU)||YU(e,RU,MH(1,{})),e[RU][r]=!0),iW(e,r,n)):YU(e,r,n)},sW=function(e,t){XV(e);var n=KH(t),r=K$(n).concat(dW(n));return LU(r,function(t){_H&&!jH(lW,n,t)||uW(e,t,n[t])}),e},lW=function(e){var t=_V(e),n=jH(ZU,this,t);return!(this===VU&&wV(QU,t)&&!wV(eW,t))&&(!(n||!wV(this,t)||!wV(QU,t)||wV(this,RU)&&this[RU][t])||n)},cW=function(e,t){var n=KH(e),r=_V(t);if(n!==VU||!wV(QU,r)||wV(eW,r)){var o=KU(n,r);return!o||!wV(QU,r)||wV(n,RU)&&n[RU][r]||(o.enumerable=!0),o}},fW=function(e){var t=XU(KH(e)),n=[];return LU(t,function(e){wV(QU,e)||wV($$,e)||JU(n,e)}),n},dW=function(e){var t=e===VU,n=XU(t?eW:KH(e)),r=[];return LU(n,function(e){!wV(QU,e)||t&&!wV(VU,e)||JU(r,QU[e])}),r};if(aV||(UU=($U=function(){if(QH(UU,this))throw WU("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?R$(arguments[0]):void 0,t=xV(e),n=function(e){this===VU&&jH(n,eW,e),wV(this,RU)&&wV(this[RU],t)&&(this[RU][t]=!1),iW(this,t,MH(1,e))};return _H&&oW&&iW(VU,t,{configurable:!0,set:n}),aW(t,e)}).prototype,yU(UU,"toString",function(){return HU(this).tag}),yU($U,"withoutSetter",function(e){return aW(xV(e),e)}),RH.f=lW,QV.f=uW,RV.f=cW,lU.f=hU.f=fW,gU.f=dW,mU.f=function(e){return aW(BV(e),e)},_H&&YU(UU,"description",{configurable:!0,get:function(){return HU(this).description}})),r$({global:!0,wrap:!0,forced:!aV,sham:!aV},{Symbol:$U}),LU(K$(rW),function(e){wU(e)}),r$({target:"Symbol",stat:!0,forced:!aV},{for:function(e){var t=R$(e);if(wV(tW,t))return tW[t];var n=$U(t);return tW[t]=n,nW[n]=t,n},keyFor:function(e){if(!lV(e))throw WU(e+" is not a symbol");if(wV(nW,e))return nW[e]},useSetter:function(){oW=!0},useSimple:function(){oW=!1}}),r$({target:"Object",stat:!0,forced:!aV,sham:!_H},{create:function(e,t){return void 0===t?uU(e):sW(uU(e),t)},defineProperty:uW,defineProperties:sW,getOwnPropertyDescriptor:cW}),r$({target:"Object",stat:!0,forced:!aV},{getOwnPropertyNames:fW,getOwnPropertySymbols:dW}),r$({target:"Object",stat:!0,forced:TH(function(){gU.f(1)})},{getOwnPropertySymbols:function(e){return gU.f(mV(e))}}),qU){var pW=!aV||TH(function(){var e=$U();return"[null]"!=qU([e])||"{}"!=qU({a:e})||"{}"!=qU(Object(e))});r$({target:"JSON",stat:!0,forced:pW},{stringify:function(e,t,n){var r=vU(arguments),o=t;if((YH(t)||void 0!==e)&&!lV(e))return o$(t)||(t=function(e,t){if(FH(o)&&(t=jH(o,this,e,t)),!lV(t))return t}),r[1]=t,xH(qU,null,r)}})}if(!UU[MU]){var hW=UU.valueOf;yU(UU,MU,function(e){return jH(hW,this)})}xU($U,"Symbol"),$$[RU]=!0,wU("asyncIterator"),wU("hasInstance"),wU("isConcatSpreadable"),wU("iterator"),wU("match"),wU("matchAll"),wU("replace"),wU("search"),wU("species"),wU("split"),wU("toPrimitive"),wU("toStringTag"),wU("unscopables"),xU(bH.JSON,"JSON",!0);var gW,vW,yW,mW=XH.Symbol,bW={},wW=Function.prototype,EW=_H&&Object.getOwnPropertyDescriptor,DW=wV(wW,"name"),CW={PROPER:DW&&"something"===function(){}.name,CONFIGURABLE:DW&&(!_H||_H&&EW(wW,"name").configurable)},xW=!TH(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SW=J$("IE_PROTO"),AW=bH.Object,OW=AW.prototype,kW=xW?AW.getPrototypeOf:function(e){var t=mV(e);if(wV(t,SW))return t[SW];var n=t.constructor;return FH(n)&&t instanceof n?n.prototype:t instanceof AW?OW:null},BW=BV("iterator"),FW=!1;[].keys&&("next"in(yW=[].keys())?(vW=kW(kW(yW)))!==Object.prototype&&(gW=vW):FW=!0);var TW=null==gW||TH(function(){var e={};return gW[BW].call(e)!==e});gW=TW?{}:uU(gW),FH(gW[BW])||yU(gW,BW,function(){return this});var _W={IteratorPrototype:gW,BUGGY_SAFARI_ITERATORS:FW},PW=_W.IteratorPrototype,jW=function(){return this};bH.String,bH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{BH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var NW=CW.PROPER,IW=_W.BUGGY_SAFARI_ITERATORS,LW=BV("iterator"),RW=function(){return this},MW=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=uU(PW,{next:MH(1,s)}),xU(u,l,!1,!0),bW[l]=jW;var c,f,d=function(e){if(e===o&&y)return y;if(!IW&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[LW]||g["@@iterator"]||o&&g[o],y=!IW&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=kW(m.call(new e)))!==Object.prototype&&c.next&&(xU(c,p,!0,!0),bW[p]=RW),NW&&"values"==o&&v&&"values"!==v.name&&(h=!0,y=function(){return jH(v,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||r$({target:t,proto:!0,forced:IW||h},f)),bW[t]=y,f},zW=jU.set,HW=jU.getterFor("Array Iterator");MW(Array,"Array",function(e,t){zW(this,{type:"Array Iterator",target:KH(e),index:0,kind:t})},function(){var e=HW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),bW.Arguments=bW.Array;var VW=BV("toStringTag");for(var $W in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var UW=bH[$W],WW=UW&&UW.prototype;WW&&v$(WW)!==VW&&e$(WW,VW,$W),bW[$W]=bW.Array}var GW=mW;wU("asyncDispose"),wU("dispose"),wU("matcher"),wU("metadata"),wU("observable"),wU("patternMatch"),wU("replaceAll");var qW=GW,KW=BH("".charAt),YW=BH("".charCodeAt),XW=BH("".slice),ZW=function(e){return function(t,n){var r,o,i=R$(qH(t)),a=u$(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=YW(i,a))<55296||r>56319||a+1===u||(o=YW(i,a+1))<56320||o>57343?e?KW(i,a):r:e?XW(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),JW=jU.set,QW=jU.getterFor("String Iterator");MW(String,"String",function(e){JW(this,{type:"String Iterator",string:R$(e),index:0})},function(){var e,t=QW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ZW(n,r),t.index+=e.length,{value:e,done:!1})});var eG=mU.f("iterator"),tG=FP(function(e){function t(n){return"function"==typeof qW&&"symbol"==typeof eG?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof qW&&e.constructor===qW&&e!==qW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),nG=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(tG),rG=xN.EXISTS,oG=tN.f,iG=Function.prototype,aG=KP(iG.toString),uG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sG=KP(uG.exec);IP&&!rG&&oG(iG,"name",{configurable:!0,get:function(){try{return sG(uG,aG(this))[1]}catch(De){return""}}});var lG=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Rf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!CR(Rf.nodes(e,{match:function(t){return"pre"===FO.getNodeType(t)||!!Rf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),cG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return mR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:sP("fontSize.default"),value:""}),r.forEach(function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===nG(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}});var o=this.getValue(e);return t.forEach(function(e){e.value===o?e.selected=!0:delete e.selected}),t},t}(lG),fG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("fontFamily.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',t.mark="fontFamily",t.selectPanelWidth=150,t}return mR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:sP("fontFamily.default"),value:""}),r.forEach(function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===nG(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}});var o=this.getValue(e);return t.forEach(function(e){e.value===o?e.selected=!0:delete e.selected}),t},t}(lG),dG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&GM(i,{fontSize:r}),o&&GM(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!sd.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((dR(t)||"span"!==hR(n=zp(t)))&&(n=zp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),pR(n)):t},preParseHtml:[hH],parseStyleHtml:function(e,t,n){var r=zp(e);if(!sd.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=gR(r,"font-size"),s=a.find(function(e){return e.value&&e.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=gR(r,"font-family").replace(/"/g,""),d=c.find(function(e){return e.value&&e.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new cG},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new fG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},pG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=zp(e),n=gR(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},hG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=CR(Rf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":CR(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=CR(Rf.nodes(e,{match:function(e){var t=FO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),gG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return mR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Ad.setNodes(e,{indent:null},{match:function(e){return _f.isElement(e)}})},t}(hG),vG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t}return mR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Ad.setNodes(e,{indent:"2em"},{match:function(e){return _f.isElement(e)},mode:"highest"})},t}(hG),yG={renderStyle:function(e,t){if(!_f.isElement(e))return t;var n=e.indent,r=t;return n&&GM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!_f.isElement(e))return t;var n=e.indent;if(!n)return t;var r=zp(t);return r.css("text-indent",n),pR(r)},preParseHtml:[pG],parseStyleHtml:function(e,t,n){var r=zp(e);if(!_f.isElement(t))return t;var o=t,i=gR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new vG}},{key:"delIndent",factory:function(){return new gG}}]},mG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=CR(Rf.nodes(e,{match:function(e){var t=FO.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!FO.getSelectedElems(e).some(function(t){if(Rf.isVoid(e,t)&&Rf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0})},e}(),bG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("justify.left"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return mR(t,e),t.prototype.exec=function(e,t){Ad.setNodes(e,{textAlign:"left"},{match:function(t){return _f.isElement(t)&&!e.isInline(t)}})},t}(mG),wG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("justify.right"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return mR(t,e),t.prototype.exec=function(e,t){Ad.setNodes(e,{textAlign:"right"},{match:function(t){return _f.isElement(t)&&!e.isInline(t)}})},t}(mG),EG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("justify.center"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return mR(t,e),t.prototype.exec=function(e,t){Ad.setNodes(e,{textAlign:"center"},{match:function(t){return _f.isElement(t)&&!e.isInline(t)}})},t}(mG),DG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=sP("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return mR(t,e),t.prototype.exec=function(e,t){Ad.setNodes(e,{textAlign:"justify"},{match:function(t){return _f.isElement(t)&&!e.isInline(t)}})},t}(mG),CG={renderStyle:function(e,t){if(!_f.isElement(e))return t;var n=e.textAlign,r=t;return n&&GM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!_f.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=zp(t);return r.css("text-align",n),pR(r)},parseStyleHtml:function(e,t,n){var r=zp(e);if(!_f.isElement(t))return t;var o=t,i=gR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new bG}},{key:"justifyRight",factory:function(){return new wG}},{key:"justifyCenter",factory:function(){return new EG}},{key:"justifyJustify",factory:function(){return new DG}}]},xG=function(){function e(){this.title=sP("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:sP("lineHeight.default"),value:""}),r.forEach(function(e){t.push({text:e,value:e})});var o=this.getValue(e);return t.forEach(function(e){e.value===o?e.selected=!0:delete e.selected}),t},e.prototype.getMatchNode=function(e){var t=CR(Rf.nodes(e,{match:function(e){var t=FO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":_f.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Ad.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),SG={renderStyle:function(e,t){if(!_f.isElement(e))return t;var n=e.lineHeight,r=t;return n&&GM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!_f.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=zp(t);return r.css("line-height",n),pR(r)},parseStyleHtml:function(e,t,n){var r=zp(e);if(!_f.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=gR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new xG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},AG=function(){function e(){this.title=sP("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),OG=function(){function e(){this.title=sP("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),kG={menus:[{key:"redo",factory:function(){return new AG}},{key:"undo",factory:function(){return new OG}}]},BG={type:"divider",renderElem:function(e,t,n){return cg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:FO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[cg("hr")])}},FG=function(){function e(){this.title=sP("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!FO.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=FO.getNodeType(t);return"table"===n||"pre"===n||void 0})},e.prototype.exec=function(e,t){Ad.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),TG={renderElems:[BG],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new FG}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=CR(e,2),o=t[0],i=t[1];if("divider"!==FO.getNodeType(o))return n([o,i]);FO.isLastNode(r,o)&&Ad.insertNodes(r,FO.genEmptyParagraph(),{at:[i[0]+1]})},r}},_G=CI.map;tI({target:"Array",proto:!0,forced:!SI("map")},{map:function(e){return _G(this,e,arguments.length>1?arguments[1]:void 0)}});var PG=KP([].join),jG=ej!=Object,NG=IR("join",",");tI({target:"Array",proto:!0,forced:jG||!NG},{join:function(e){return PG(rj(this),void 0===e?",":e)}});var IG=function(){function e(){this.title=sP("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=FO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=FO.getParentNode(e,t);return null==n||"pre"!==FO.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=FO.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!t.some(function(e){var t=FO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0})},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=$f.string(t);Ad.removeNodes(e,{mode:"highest"});var r=n.split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}});Ad.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Rf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=DR(i),u=a.next();!u.done;u=a.next()){var s=CR(u.value,1)[0];s&&o.push($f.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Ad.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Ad.insertNodes(e,l,{mode:"highest"})},e}(),LG={key:"codeBlock",factory:function(){return new IG}};tI({target:"String",proto:!0,forced:BR("anchor")},{anchor:function(e){return kR(this,"a","name",e)}}),gL("match",function(e,t,n){return[function(t){var n=nj(this),r=null==t?void 0:Dj(t,e);return r?RP(r,t,n):new RegExp(t)[e](FI(n))},function(e){var r=Jj(this),o=FI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return BL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=BL(r,o));){var c=FI(u[0]);s[l]=c,""===c&&(r.lastIndex=wL(o,PN(r.lastIndex),a)),l++}return 0===l?null:s}]});var RG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e);return 0===(t=t.filter(function(e){return"code"===FO.getNodeType(e)})).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(e){return"code"===FO.getNodeType(e)})}}},MG={menus:[LG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=FO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=$f.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=CR(e,2),r=t[0],i=t[1],a=FO.getNodeType(r);return"code"===a&&i.length<=1&&Ad.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(FO.isLastNode(o,r)&&Ad.insertNodes(o,FO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==FO.getNodeType(r.children[0])&&(Ad.unwrapNodes(o),Ad.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=FO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Rf.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return Fg("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return Fg("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=zp(e);if("code"!==hR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:zp(e)[0].textContent||""}]}}},RG]},zG=function(){function e(){this.title=sP("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),HG={menus:[{key:"fullScreen",factory:function(){return new zG}}]},VG=function(){function e(){this.title=sP("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!td.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Ad.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Rf.start(e,r))}},e}(),$G=[eM,JM,dG,yG,CG,SG,Xz,TG,dH,bz,MG,cH,HM,SR,eH,kG,HG,{menus:[{key:"enter",factory:function(){return new VG}}]}];uP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),uP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var UG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function WG(e){var t={exports:{}};return e(t,t.exports),t.exports}var GG,qG,KG=function(e){return e&&e.Math==Math&&e},YG=KG("object"==typeof globalThis&&globalThis)||KG("object"==typeof window&&window)||KG("object"==typeof self&&self)||KG("object"==typeof UG&&UG)||function(){return this}()||Function("return this")(),XG=Function.prototype,ZG=XG.bind,JG=XG.call,QG=ZG&&ZG.bind(JG),eq=ZG?function(e){return e&&QG(JG,e)}:function(e){return e&&function(){return JG.apply(e,arguments)}},tq=function(e){try{return!!e()}catch(t){return!0}},nq=eq({}.toString),rq=eq("".slice),oq=function(e){return rq(nq(e),8,-1)},iq=YG.Object,aq=eq("".split),uq=tq(function(){return!iq("z").propertyIsEnumerable(0)})?function(e){return"String"==oq(e)?aq(e,""):iq(e)}:iq,sq=YG.TypeError,lq=function(e){if(null==e)throw sq("Can't call method on "+e);return e},cq=function(e){return uq(lq(e))},fq=Object.defineProperty,dq=function(e,t){try{fq(YG,e,{value:t,configurable:!0,writable:!0})}catch(cP){YG[e]=t}return t},pq=YG["__core-js_shared__"]||dq("__core-js_shared__",{}),hq=WG(function(e){(e.exports=function(e,t){return pq[e]||(pq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gq=YG.Object,vq=function(e){return gq(lq(e))},yq=eq({}.hasOwnProperty),mq=Object.hasOwn||function(e,t){return yq(vq(e),t)},bq=0,wq=Math.random(),Eq=eq(1..toString),Dq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Eq(++bq+wq,36)},Cq=function(e){return"function"==typeof e},xq=function(e,t){return arguments.length<2?function(e){return Cq(e)?e:void 0}(YG[e]):YG[e]&&YG[e][t]},Sq=xq("navigator","userAgent")||"",Aq=YG.process,Oq=YG.Deno,kq=Aq&&Aq.versions||Oq&&Oq.version,Bq=kq&&kq.v8;Bq&&(qG=(GG=Bq.split("."))[0]>0&&GG[0]<4?1:+(GG[0]+GG[1])),!qG&&Sq&&(!(GG=Sq.match(/Edge\/(\d+)/))||GG[1]>=74)&&(GG=Sq.match(/Chrome\/(\d+)/))&&(qG=+GG[1]);var Fq,Tq=qG,_q=!!Object.getOwnPropertySymbols&&!tq(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tq&&Tq<41}),Pq=_q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jq=hq("wks"),Nq=YG.Symbol,Iq=Nq&&Nq.for,Lq=Pq?Nq:Nq&&Nq.withoutSetter||Dq,Rq=function(e){if(!mq(jq,e)||!_q&&"string"!=typeof jq[e]){var t="Symbol."+e;_q&&mq(Nq,e)?jq[e]=Nq[e]:jq[e]=Pq&&Iq?Iq(t):Lq(t)}return jq[e]},Mq=function(e){return"object"==typeof e?null!==e:Cq(e)},zq=YG.String,Hq=YG.TypeError,Vq=function(e){if(Mq(e))return e;throw Hq(zq(e)+" is not an object")},$q=!tq(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Uq=YG.document,Wq=Mq(Uq)&&Mq(Uq.createElement),Gq=function(e){return Wq?Uq.createElement(e):{}},qq=!$q&&!tq(function(){return 7!=Object.defineProperty(Gq("div"),"a",{get:function(){return 7}}).a}),Kq=Function.prototype.call,Yq=Kq.bind?Kq.bind(Kq):function(){return Kq.apply(Kq,arguments)},Xq=eq({}.isPrototypeOf),Zq=YG.Object,Jq=Pq?function(e){return"symbol"==typeof e}:function(e){var t=xq("Symbol");return Cq(t)&&Xq(t.prototype,Zq(e))},Qq=YG.String,eK=function(e){try{return Qq(e)}catch(t){return"Object"}},tK=YG.TypeError,nK=function(e){if(Cq(e))return e;throw tK(eK(e)+" is not a function")},rK=function(e,t){var n=e[t];return null==n?void 0:nK(n)},oK=YG.TypeError,iK=YG.TypeError,aK=Rq("toPrimitive"),uK=function(e){var t=function(e){if(!Mq(e)||Jq(e))return e;var t,n=rK(e,aK);if(n){if(t=Yq(n,e,"string"),!Mq(t)||Jq(t))return t;throw iK("Can't convert object to primitive value")}return function(e){var t,n;if(Cq(t=e.toString)&&!Mq(n=Yq(t,e)))return n;if(Cq(t=e.valueOf)&&!Mq(n=Yq(t,e)))return n;throw oK("Can't convert object to primitive value")}(e)}(e);return Jq(t)?t:t+""},sK=YG.TypeError,lK=Object.defineProperty,cK={f:$q?lK:function(e,t,n){if(Vq(e),t=uK(t),Vq(n),qq)try{return lK(e,t,n)}catch(r){}if("get"in n||"set"in n)throw sK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fK=Math.ceil,dK=Math.floor,pK=function(e){var t=+e;return t!=t||0===t?0:(t>0?dK:fK)(t)},hK=Math.max,gK=Math.min,vK=function(e,t){var n=pK(e);return n<0?hK(n+t,0):gK(n,t)},yK=Math.min,mK=function(e){return e>0?yK(pK(e),9007199254740991):0},bK=function(e){return mK(e.length)},wK=function(e){return function(t,n,r){var o,i=cq(t),a=bK(i),u=vK(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},EK={includes:wK(!0),indexOf:wK(!1)},DK={},CK=EK.indexOf,xK=eq([].push),SK=function(e,t){var n,r=cq(e),o=0,i=[];for(n in r)!mq(DK,n)&&mq(r,n)&&xK(i,n);for(;t.length>o;)mq(r,n=t[o++])&&(~CK(i,n)||xK(i,n));return i},AK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],OK=Object.keys||function(e){return SK(e,AK)},kK=$q?Object.defineProperties:function(e,t){Vq(e);for(var n,r=cq(t),o=OK(t),i=o.length,a=0;i>a;)cK.f(e,n=o[a++],r[n]);return e},BK=xq("document","documentElement"),FK=hq("keys"),TK=function(e){return FK[e]||(FK[e]=Dq(e))},_K=TK("IE_PROTO"),PK=function(){},jK=function(e){return"<script>"+e+"<\/script>"},NK=function(e){e.write(jK("")),e.close();var t=e.parentWindow.Object;return e=null,t},IK=function(){try{Fq=new ActiveXObject("htmlfile")}catch(r){}var e,t;IK="undefined"!=typeof document?document.domain&&Fq?NK(Fq):((t=Gq("iframe")).style.display="none",BK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(jK("document.F=Object")),e.close(),e.F):NK(Fq);for(var n=AK.length;n--;)delete IK.prototype[AK[n]];return IK()};DK[_K]=!0;var LK=Object.create||function(e,t){var n;return null!==e?(PK.prototype=Vq(e),n=new PK,PK.prototype=null,n[_K]=e):n=IK(),void 0===t?n:kK(n,t)},RK=Rq("unscopables"),MK=Array.prototype;null==MK[RK]&&cK.f(MK,RK,{configurable:!0,value:LK(null)});var zK=function(e){MK[RK][e]=!0},HK={},VK=eq(Function.toString);Cq(pq.inspectSource)||(pq.inspectSource=function(e){return VK(e)});var $K,UK,WK,GK=pq.inspectSource,qK=YG.WeakMap,KK=Cq(qK)&&/native code/.test(GK(qK)),YK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XK=$q?function(e,t,n){return cK.f(e,t,YK(1,n))}:function(e,t,n){return e[t]=n,e},ZK=YG.TypeError,JK=YG.WeakMap;if(KK||pq.state){var QK=pq.state||(pq.state=new JK),eY=eq(QK.get),tY=eq(QK.has),nY=eq(QK.set);$K=function(e,t){if(tY(QK,e))throw new ZK("Object already initialized");return t.facade=e,nY(QK,e,t),t},UK=function(e){return eY(QK,e)||{}},WK=function(e){return tY(QK,e)}}else{var rY=TK("state");DK[rY]=!0,$K=function(e,t){if(mq(e,rY))throw new ZK("Object already initialized");return t.facade=e,XK(e,rY,t),t},UK=function(e){return mq(e,rY)?e[rY]:{}},WK=function(e){return mq(e,rY)}}var oY,iY,aY,uY={set:$K,get:UK,has:WK,enforce:function(e){return WK(e)?UK(e):$K(e,{})},getterFor:function(e){return function(t){var n;if(!Mq(t)||(n=UK(t)).type!==e)throw ZK("Incompatible receiver, "+e+" required");return n}}},sY={}.propertyIsEnumerable,lY=Object.getOwnPropertyDescriptor,cY={f:lY&&!sY.call({1:2},1)?function(e){var t=lY(this,e);return!!t&&t.enumerable}:sY},fY=Object.getOwnPropertyDescriptor,dY={f:$q?fY:function(e,t){if(e=cq(e),t=uK(t),qq)try{return fY(e,t)}catch(n){}if(mq(e,t))return YK(!Yq(cY.f,e,t),e[t])}},pY=Function.prototype,hY=$q&&Object.getOwnPropertyDescriptor,gY=mq(pY,"name"),vY={PROPER:gY&&"something"===function(){}.name,CONFIGURABLE:gY&&(!$q||$q&&hY(pY,"name").configurable)},yY=WG(function(e){var t=vY.CONFIGURABLE,n=uY.get,r=uY.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Cq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mq(i,"name")||t&&i.name!==f)&&XK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==YG?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:XK(e,n,i)):l?e[n]=i:dq(n,i)})(Function.prototype,"toString",function(){return Cq(this)&&n(this).source||GK(this)})}),mY=AK.concat("length","prototype"),bY={f:Object.getOwnPropertyNames||function(e){return SK(e,mY)}},wY={f:Object.getOwnPropertySymbols},EY=eq([].concat),DY=xq("Reflect","ownKeys")||function(e){var t=bY.f(Vq(e)),n=wY.f;return n?EY(t,n(e)):t},CY=function(e,t){for(var n=DY(t),r=cK.f,o=dY.f,i=0;i<n.length;i++){var a=n[i];mq(e,a)||r(e,a,o(t,a))}},xY=/#|\.prototype\./,SY=function(e,t){var n=OY[AY(e)];return n==BY||n!=kY&&(Cq(t)?tq(t):!!t)},AY=SY.normalize=function(e){return String(e).replace(xY,".").toLowerCase()},OY=SY.data={},kY=SY.NATIVE="N",BY=SY.POLYFILL="P",FY=SY,TY=dY.f,_Y=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?YG:l?YG[u]||dq(u,{}):(YG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=TY(n,r))&&a.value:n[r],!FY(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;CY(i,o)}(e.sham||o&&o.sham)&&XK(i,"sham",!0),yY(n,r,i,e)}},PY=!tq(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jY=TK("IE_PROTO"),NY=YG.Object,IY=NY.prototype,LY=PY?NY.getPrototypeOf:function(e){var t=vq(e);if(mq(t,jY))return t[jY];var n=t.constructor;return Cq(n)&&t instanceof n?n.prototype:t instanceof NY?IY:null},RY=Rq("iterator"),MY=!1;[].keys&&("next"in(aY=[].keys())?(iY=LY(LY(aY)))!==Object.prototype&&(oY=iY):MY=!0);var zY=null==oY||tq(function(){var e={};return oY[RY].call(e)!==e});zY&&(oY={}),Cq(oY[RY])||yY(oY,RY,function(){return this});var HY={IteratorPrototype:oY,BUGGY_SAFARI_ITERATORS:MY},VY=cK.f,$Y=Rq("toStringTag"),UY=function(e,t,n){e&&!mq(e=n?e:e.prototype,$Y)&&VY(e,$Y,{configurable:!0,value:t})},WY=HY.IteratorPrototype,GY=function(){return this},qY=YG.String,KY=YG.TypeError,YY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=eq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Vq(n),function(e){if("object"==typeof e||Cq(e))return e;throw KY("Can't set "+qY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),XY=vY.PROPER,ZY=vY.CONFIGURABLE,JY=HY.IteratorPrototype,QY=HY.BUGGY_SAFARI_ITERATORS,eX=Rq("iterator"),tX=function(){return this},nX=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=LK(WY,{next:YK(1,s)}),UY(u,l,!1),HK[l]=GY;var c,f,d=function(e){if(e===o&&y)return y;if(!QY&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[eX]||g["@@iterator"]||o&&g[o],y=!QY&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=LY(m.call(new e)))!==Object.prototype&&c.next&&(LY(c)!==JY&&(YY?YY(c,JY):Cq(c[eX])||yY(c,eX,tX)),UY(c,p,!0)),XY&&"values"==o&&v&&"values"!==v.name&&(ZY?XK(g,"name","values"):(h=!0,y=function(){return Yq(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||_Y({target:t,proto:!0,forced:QY||h},f)),g[eX]!==y&&yY(g,eX,y,{name:o}),HK[t]=y,f},rX=uY.set,oX=uY.getterFor("Array Iterator"),iX=nX(Array,"Array",function(e,t){rX(this,{type:"Array Iterator",target:cq(e),index:0,kind:t})},function(){var e=oX(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");HK.Arguments=HK.Array,zK("keys"),zK("values"),zK("entries");var aX={};aX[Rq("toStringTag")]="z";var uX="[object z]"===String(aX),sX=Rq("toStringTag"),lX=YG.Object,cX="Arguments"==oq(function(){return arguments}()),fX=uX?oq:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=lX(e),sX))?n:cX?oq(t):"Object"==(r=oq(t))&&Cq(t.callee)?"Arguments":r},dX=uX?{}.toString:function(){return"[object "+fX(this)+"]"};uX||yY(Object.prototype,"toString",dX,{unsafe:!0});var pX=YG.String,hX=function(e){if("Symbol"===fX(e))throw TypeError("Cannot convert a Symbol value to a string");return pX(e)},gX=eq("".charAt),vX=eq("".charCodeAt),yX=eq("".slice),mX={charAt:function(e){return function(t,n){var r,o,i=hX(lq(t)),a=pK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=vX(i,a))<55296||r>56319||a+1===u||(o=vX(i,a+1))<56320||o>57343?e?gX(i,a):r:e?yX(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},bX=mX.charAt,wX=uY.set,EX=uY.getterFor("String Iterator");nX(String,"String",function(e){wX(this,{type:"String Iterator",string:hX(e),index:0})},function(){var e,t=EX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=bX(n,r),t.index+=e.length,{value:e,done:!1})});var DX=function(e,t,n){for(var r in t)yY(e,r,t[r],n);return e},CX=YG.Array,xX=Math.max,SX=bY.f,AX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],OX={f:function(e){return AX&&"Window"==oq(e)?function(e){try{return SX(e)}catch(t){return function(e){for(var t,n,r,o,i=bK(e),a=vK(void 0,i),u=vK(i,i),s=CX(xX(u-a,0)),l=0;a<u;a++,l++)t=s,n=l,r=e[a],(o=uK(n))in t?cK.f(t,o,YK(0,r)):t[o]=r;return s.length=l,s}(AX)}}(e):SX(cq(e))}},kX=tq(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),BX=Object.isExtensible,FX=tq(function(){BX(1)})||kX?function(e){return!!Mq(e)&&(!kX||"ArrayBuffer"!=oq(e))&&(!BX||BX(e))}:BX,TX=!tq(function(){return Object.isExtensible(Object.preventExtensions({}))}),_X=WG(function(e){var t=cK.f,n=!1,r=Dq("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=bY.f,t=eq([].splice),o={};o[r]=1,e(o).length&&(bY.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},_Y({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:OX.f}))},fastKey:function(e,t){if(!Mq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!mq(e,r)){if(!FX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!mq(e,r)){if(!FX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return TX&&n&&FX(e)&&!mq(e,r)&&i(e),e}};DK[r]=!0}),PX=eq(eq.bind),jX=function(e,t){return nK(e),void 0===t?e:PX?PX(e,t):function(){return e.apply(t,arguments)}},NX=Rq("iterator"),IX=Array.prototype,LX=Rq("iterator"),RX=function(e){if(null!=e)return rK(e,LX)||rK(e,"@@iterator")||HK[fX(e)]},MX=YG.TypeError,zX=function(e,t,n){var r,o;Vq(e);try{if(!(r=rK(e,"return"))){if("throw"===t)throw n;return n}r=Yq(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Vq(r),n},HX=YG.TypeError,VX=function(e,t){this.stopped=e,this.result=t},$X=VX.prototype,UX=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=jX(t,f),v=function(e){return r&&zX(r,"normal",e),new VX(!0,e)},y=function(e){return d?(Vq(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=RX(e)))throw HX(eK(e)+" is not iterable");if(void 0!==(c=o)&&(HK.Array===c||IX[NX]===c)){for(i=0,a=bK(e);a>i;i++)if((u=y(e[i]))&&Xq($X,u))return u;return new VX(!1)}r=function(e,t){var n=arguments.length<2?RX(e):t;if(nK(n))return Vq(Yq(n,e));throw MX(eK(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Yq(s,r)).done;){try{u=y(l.value)}catch(m){zX(r,"throw",m)}if("object"==typeof u&&u&&Xq($X,u))return u}return new VX(!1)},WX=YG.TypeError,GX=function(e,t){if(Xq(t,e))return e;throw WX("Incorrect invocation")},qX=Rq("iterator"),KX=!1;try{var YX=0,XX={next:function(){return{done:!!YX++}},return:function(){KX=!0}};XX[qX]=function(){return this},Array.from(XX,function(){throw 2})}catch(Yge){}var ZX=Array.isArray||function(e){return"Array"==oq(e)},JX=function(){},QX=[],eZ=xq("Reflect","construct"),tZ=/^\s*(?:class|function)\b/,nZ=eq(tZ.exec),rZ=!tZ.exec(JX),oZ=function(e){if(!Cq(e))return!1;try{return eZ(JX,QX,e),!0}catch(t){return!1}},iZ=!eZ||tq(function(){var e;return oZ(oZ.call)||!oZ(Object)||!oZ(function(){e=!0})||e})?function(e){if(!Cq(e))return!1;switch(fX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rZ||!!nZ(tZ,GK(e))}:oZ,aZ=Rq("species"),uZ=YG.Array,sZ=function(e,t){return new(ZX(n=e)&&(r=n.constructor,(iZ(r)&&(r===uZ||ZX(r.prototype))||Mq(r)&&null===(r=r[aZ]))&&(r=void 0)),void 0===r?uZ:r)(0===t?0:t);var n,r},lZ=eq([].push),cZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=vq(s),g=uq(h),v=jX(l,c),y=bK(g),m=0,b=f||sZ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:lZ(w,d)}else switch(e){case 4:return!1;case 7:lZ(w,d)}return i?-1:r||o?o:w}},fZ={filter:cZ(2),find:cZ(5),findIndex:cZ(6)},dZ=_X.getWeakData,pZ=uY.set,hZ=uY.getterFor,gZ=fZ.find,vZ=fZ.findIndex,yZ=eq([].splice),mZ=0,bZ=function(e){return e.frozen||(e.frozen=new wZ)},wZ=function(){this.entries=[]},EZ=function(e,t){return gZ(e.entries,function(e){return e[0]===t})};wZ.prototype={get:function(e){var t=EZ(this,e);if(t)return t[1]},has:function(e){return!!EZ(this,e)},set:function(e,t){var n=EZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=vZ(this.entries,function(t){return t[0]===e});return~t&&yZ(this.entries,t,1),!!~t}};var DZ,CZ={getConstructor:function(e,t,n,r){var o=e(function(e,o){GX(e,i),pZ(e,{type:t,id:mZ++,frozen:void 0}),null!=o&&UX(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=hZ(t),u=function(e,t,n){var r=a(e),o=dZ(Vq(t),!0);return!0===o?bZ(r).set(t,n):o[r.id]=n,e};return DX(i,{delete:function(e){var t=a(this);if(!Mq(e))return!1;var n=dZ(e);return!0===n?bZ(t).delete(e):n&&mq(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Mq(e))return!1;var n=dZ(e);return!0===n?bZ(t).has(e):n&&mq(n,t.id)}}),DX(i,n?{get:function(e){var t=a(this);if(Mq(e)){var n=dZ(e);return!0===n?bZ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xZ=uY.enforce,SZ=!YG.ActiveXObject&&"ActiveXObject"in YG,AZ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},OZ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=YG[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=eq(u[e]);yY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Mq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Mq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Mq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(FY(e,!Cq(a)||!(o||u.forEach&&!tq(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),_X.enable();else if(FY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=tq(function(){f.has(1)}),h=function(){if(!KX)return!1;var e=!1;try{var t={};t[qX]=function(){return{next:function(){return{done:e=!0}}}},new a(t)}catch(n){}return e}(),g=!o&&tq(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){GX(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,YY&&Cq(c=o.constructor)&&c!==l&&Mq(f=c.prototype)&&f!==l.prototype&&YY(n,f),n);return null!=t&&UX(t,d[i],{that:d,AS_ENTRIES:r}),d})).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,_Y({global:!0,forced:s!=a},l),UY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",AZ,CZ);if(KK&&SZ){DZ=CZ.getConstructor(AZ,"WeakMap",!0),_X.enable();var kZ=OZ.prototype,BZ=eq(kZ.delete),FZ=eq(kZ.has),TZ=eq(kZ.get),_Z=eq(kZ.set);DX(kZ,{delete:function(e){if(Mq(e)&&!FX(e)){var t=xZ(this);return t.frozen||(t.frozen=new DZ),BZ(this,e)||t.frozen.delete(e)}return BZ(this,e)},has:function(e){if(Mq(e)&&!FX(e)){var t=xZ(this);return t.frozen||(t.frozen=new DZ),FZ(this,e)||t.frozen.has(e)}return FZ(this,e)},get:function(e){if(Mq(e)&&!FX(e)){var t=xZ(this);return t.frozen||(t.frozen=new DZ),FZ(this,e)?TZ(this,e):t.frozen.get(e)}return TZ(this,e)},set:function(e,t){if(Mq(e)&&!FX(e)){var n=xZ(this);n.frozen||(n.frozen=new DZ),FZ(this,e)?_Z(this,e,t):n.frozen.set(e,t)}else _Z(this,e,t);return this}})}var PZ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},jZ=Gq("span").classList,NZ=jZ&&jZ.constructor&&jZ.constructor.prototype,IZ=NZ===Object.prototype?void 0:NZ,LZ=Rq("iterator"),RZ=Rq("toStringTag"),MZ=iX.values,zZ=function(e,t){if(e){if(e[LZ]!==MZ)try{XK(e,LZ,MZ)}catch(r){e[LZ]=MZ}if(e[RZ]||XK(e,RZ,t),PZ[t])for(var n in iX)if(e[n]!==iX[n])try{XK(e,n,iX[n])}catch(r){e[n]=iX[n]}}};for(var HZ in PZ)zZ(YG[HZ]&&YG[HZ].prototype,HZ);zZ(IZ,"DOMTokenList");var VZ=new WeakMap,$Z={type:"list-item",renderElem:function(e,t,n){VZ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";void 0!==a&&a?s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=FO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=qf.previous(c),d=Rf.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e)+".":s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return Fg("div",{style:u},Fg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];sd.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),Fg("span",null,t))}},UZ=function(e,t){return UZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},UZ(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function WZ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}UZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function GZ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qZ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function KZ(e){return Rf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===FO.findPath(e,t).length}})}var YZ=EK.includes;_Y({target:"Array",proto:!0},{includes:function(e){return YZ(this,e,arguments.length>1?arguments[1]:void 0)}}),zK("includes");var XZ,ZZ,JZ=function(){var e=Vq(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},QZ=YG.RegExp,eJ=tq(function(){var e=QZ("a","y");return e.lastIndex=2,null!=e.exec("abcd")});eJ||tq(function(){return!QZ("a","y").sticky});var tJ={BROKEN_CARET:eJ||tq(function(){var e=QZ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},nJ=YG.RegExp,rJ=tq(function(){var e=nJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),oJ=YG.RegExp,iJ=tq(function(){var e=oJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),aJ=uY.get,uJ=hq("native-string-replace",String.prototype.replace),sJ=RegExp.prototype.exec,lJ=sJ,cJ=eq("".charAt),fJ=eq("".indexOf),dJ=eq("".replace),pJ=eq("".slice),hJ=(ZZ=/b*/g,Yq(sJ,XZ=/a/,"a"),Yq(sJ,ZZ,"a"),0!==XZ.lastIndex||0!==ZZ.lastIndex),gJ=tJ.BROKEN_CARET,vJ=void 0!==/()??/.exec("")[1];(hJ||vJ||gJ||rJ||iJ)&&(lJ=function(e){var t,n,r,o,i,a,u,s=this,l=aJ(s),c=hX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Yq(lJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=gJ&&s.sticky,h=Yq(JZ,s),g=s.source,v=0,y=c;if(p&&(h=dJ(h,"y",""),-1===fJ(h,"g")&&(h+="g"),y=pJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==cJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),vJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),hJ&&(r=s.lastIndex),o=Yq(sJ,p?n:s,y),p?o?(o.input=pJ(o.input,v),o[0]=pJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:hJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),vJ&&o&&o.length>1&&Yq(uJ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=LK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var yJ=lJ;_Y({target:"RegExp",proto:!0,forced:/./.exec!==yJ},{exec:yJ});var mJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return FO.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!FO.getSelectedElems(e).some(function(t){if(Rf.isVoid(e,t)&&Rf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0})},e.prototype.exec=function(e,t){this.isActive(e)?Ad.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Ad.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),bJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=sP("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return WZ(t,e),t}(mJ),wJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=sP("listModule.orderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',t}return WZ(t,e),t}(mJ),EJ={key:"bulletedList",factory:function(){return new bJ}},DJ={key:"numberedList",factory:function(){return new wJ}},CJ=[],xJ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=VZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=FO.findPath(t,e);if(0===s[0])return u+1;var l=qf.previous(s),c=Rf.node(t,l);if(!c)return 0;var f=qZ(c,1)[0];if(FO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",CJ.push(i);var s=function(e){var t=VZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=FO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=qf.next(s),c=Rf.node(t,l);if(!c)return 0;var f=qZ(c,1)[0];if(FO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+CJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},SJ=Rq("species"),AJ=fZ.filter,OJ=Tq>=51||!tq(function(){var e=[];return(e.constructor={})[SJ]=function(){return{foo:1}},1!==e.filter(Boolean).foo});_Y({target:"Array",proto:!0,forced:!OJ},{filter:function(e){return AJ(this,e,arguments.length>1?arguments[1]:void 0)}});var kJ=Function.prototype,BJ=kJ.apply,FJ=kJ.bind,TJ=kJ.call,_J="object"==typeof Reflect&&Reflect.apply||(FJ?TJ.bind(BJ):function(){return TJ.apply(BJ,arguments)}),PJ=(Rq("species"),RegExp.prototype),jJ=mX.charAt,NJ=function(e,t,n){return t+(n?jJ(e,t).length:1)},IJ=Math.floor,LJ=eq("".charAt),RJ=eq("".replace),MJ=eq("".slice),zJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HJ=/\$([$&'`]|\d{1,2})/g,VJ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=HJ;return void 0!==o&&(o=vq(o),s=zJ),RJ(i,s,function(i,s){var l;switch(LJ(s,0)){case"$":return"$";case"&":return e;case"`":return MJ(t,0,n);case"'":return MJ(t,a);case"<":l=o[MJ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=IJ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?LJ(s,1):r[f-1]+LJ(s,1):i}l=r[c-1]}return void 0===l?"":l})},$J=YG.TypeError,UJ=function(e,t){var n=e.exec;if(Cq(n)){var r=Yq(n,e,t);return null!==r&&Vq(r),r}if("RegExp"===oq(e))return Yq(yJ,e,t);throw $J("RegExp#exec called on incompatible receiver")},WJ=Rq("replace"),GJ=Math.max,qJ=Math.min,KJ=eq([].concat),YJ=eq([].push),XJ=eq("".indexOf),ZJ=eq("".slice),JJ="$0"==="a".replace(/./,"$0"),QJ=!!/./[WJ]&&""===/./[WJ]("a","$0");!function(e,t,n){var r=Rq(e),o=!tq(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),i=o&&!tq(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e});if(!o||!i||n){var a=eq(/./[r]),u=function(e,t){var n=QJ?"$":"$0";return[function(e,n){var r=lq(this),o=null==e?void 0:rK(e,WJ);return o?Yq(o,e,r,n):Yq(t,hX(r),e,n)},function(e,r){var i=Vq(this),u=hX(e);if("string"==typeof r&&-1===XJ(r,n)&&-1===XJ(r,"$<")){var s=function(e,t,n,r,i){var u=eq(e),s=t.exec;return s===yJ||s===PJ.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}(t,i,u,r);if(s.done)return s.value}var l=Cq(r);l||(r=hX(r));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=UJ(i,u);if(null===p)break;if(YJ(d,p),!c)break;""===hX(p[0])&&(i.lastIndex=NJ(u,mK(i.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=hX((p=d[y])[0]),b=GJ(qJ(pK(p.index),u.length),0),w=[],E=1;E<p.length;E++)YJ(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(l){var C=KJ([m],w,b,u);void 0!==D&&YJ(C,D);var x=hX(_J(r,void 0,C))}else x=VJ(m,u,b,w,D,r);b>=v&&(g+=ZJ(u,v,b)+x,v=b+m.length)}return g+ZJ(u,v)}]}(0,""[e]);yY(String.prototype,e,u[0]),yY(PJ,r,u[1])}}("replace",0,!!tq(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!JJ||QJ);var eQ=YG.TypeError,tQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&jX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&ZX(s))l=bK(s),c=tQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw eQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},nQ=tQ;function rQ(e){return e.length?e[0].tagName.toLowerCase():""}_Y({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=vq(this),n=bK(t),r=sZ(t,0);return r.length=nQ(r,t,t,n,0,void 0===e?1:pK(e)),r}}),zK("flat"),_Y({global:!0},{globalThis:YG}),uh&&(zp.fn.append=uh),Up&&(zp.fn.attr=Up),lh&&(zp.fn.parent=lh);var oQ={renderElems:[$Z],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(td.isExpanded(n))t(e);else{var r=FO.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?Ad.setNodes(o,{level:a-1}):Ad.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(td.isCollapsed(a)){var u=FO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void Ad.setNodes(o,{level:l+1})}}if(td.isExpanded(a)){var c=0,f=!1;try{for(var d=GZ(KZ(o)),p=d.next();!p.done;p=d.next()){var h=qZ(p.value,1)[0];"list-item"===FO.getNodeType(h)?c++:f=!0}}catch(w){e={error:w}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=GZ(KZ(o)),v=g.next();!v.done;v=g.next()){var y=qZ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Ad.setNodes(o,{level:l+1},{at:m})}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=qZ(e,2),n=t[0],i=t[1],a=FO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Ad.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[EJ,DJ],elemsToHtml:[xJ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e);0===(t=t.filter(function(e){return!!sd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===rQ(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=rQ(n);"ul"===r||"ol"===r;)r=rQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},iQ=T(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[o]=D[i]=D[m]=D[a]=D[b]=D[u]=D[s]=D[l]=D[c]=D[f]=D[d]=D[h]=D[g]=D[v]=D[y]=!1;var C="object"==typeof F&&F&&F.Object===Object&&F,x="object"==typeof self&&self&&self.Object===Object&&self,S=C||x||Function("return this")(),A=t&&!t.nodeType&&t,O=A&&e&&!e.nodeType&&e,k=O&&O.exports===A,B=k&&C.process,T=function(){try{return B&&B.binding&&B.binding("util")}catch(De){}}(),_=T&&T.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function N(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var I=Array.prototype,L=Function.prototype,R=Object.prototype,M=S["__core-js_shared__"],z=L.toString,H=R.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$=R.toString,U=RegExp("^"+z.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=k?S.Buffer:void 0,G=S.Symbol,q=S.Uint8Array,K=R.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ae(S,"DataView"),te=Ae(S,"Map"),ne=Ae(S,"Promise"),re=Ae(S,"Set"),oe=Ae(S,"WeakMap"),ie=Ae(Object,"create"),ae=Fe(ee),ue=Fe(te),se=Fe(ne),le=Fe(re),ce=Fe(oe),fe=G?G.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=H.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(i){}var o=$.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,$.call(t));var t}function we(e){return Re(e)&&be(e)==o}function Ee(e,t,n,r,l){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var y=Pe(e),w=Pe(t),E=y?i:ke(e),D=w?i:ke(t),C=(E=E==o?d:E)==d,x=(D=D==o?d:D)==d,S=E==D;if(S&&je(e)){if(!je(t))return!1;y=!0,C=!1}if(S&&!C)return p||(p=new ye),y||Me(e)?Ce(e,t,n,r,l,p):function(e,t,n,r,o,i,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case a:case u:case f:return Te(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case v:return e==t+"";case c:var d=j;case g:var p=1&r;if(d||(d=N),e.size!=t.size&&!p)return!1;var y=l.get(e);if(y)return y==t;r|=2,l.set(e,t);var w=Ce(d(e),d(t),r,o,i,l);return l.delete(e),w;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=C&&H.call(e,"__wrapped__"),O=x&&H.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new ye),l(k,B,n,r,p)}}return!!S&&(p||(p=new ye),function(e,t,n,r,o,i){var a=1&n,u=xe(e),s=u.length;if(s!=xe(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:H.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,l,p))}(e,t,n,r,Ee,l))}function Ce(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a})){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function xe(e){return n=Oe,r=ze(t=e),Pe(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r}function Se(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ae(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Le(e)||(t=e,V&&V in t))&&(Ne(e)?U:w).test(Fe(e));var t}(o)?o:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:H.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Se(this,e).get(e)},ge.prototype.has=function(e){return Se(this,e).has(e)},ge.prototype.set=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Oe=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Z(e),function(t){return K.call(e,t)}))}:function(){return[]},ke=be;function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){if(null!=e){try{return z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Te(e,t){return e===t||e!=e&&t!=t}(ee&&ke(new ee(new ArrayBuffer(1)))!=b||te&&ke(new te)!=c||ne&&ke(ne.resolve())!=p||re&&ke(new re)!=g||oe&&ke(new oe)!=y)&&(ke=function(e){var t=be(e),n=t==d?e.constructor:void 0,r=n?Fe(n):"";if(r)switch(r){case ae:return b;case ue:return c;case se:return p;case le:return g;case ce:return y}return t});var _e=we(function(){return arguments}())?we:function(e){return Re(e)&&H.call(e,"callee")&&!K.call(e,"callee")},Pe=Array.isArray,je=J||function(){return!1};function Ne(e){if(!Le(e))return!1;var t=be(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Le(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Me=_?function(e){return function(t){return e(t)}}(_):function(e){return Re(e)&&Ie(e.length)&&!!D[be(e)]};function ze(e){return null!=(t=e)&&Ie(t.length)&&!Ne(t)?function(e){var t=Pe(e),n=!t&&_e(e),r=!t&&!n&&je(e),o=!t&&!n&&!r&&Me(e),i=t||n||r||o,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length;for(var s in e)!H.call(e,s)||i&&("length"==s||r&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Be(s,u))||a.push(s);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return Q(e);var t,n,r=[];for(var o in Object(e))H.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}});uP("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),uP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var aQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function uQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var sQ,lQ,cQ=function(e){return e&&e.Math==Math&&e},fQ=cQ("object"==typeof globalThis&&globalThis)||cQ("object"==typeof window&&window)||cQ("object"==typeof self&&self)||cQ("object"==typeof aQ&&aQ)||function(){return this}()||Function("return this")(),dQ=function(e){try{return!!e()}catch(t){return!0}},pQ=!dQ(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),hQ=Function.prototype.call,gQ=hQ.bind?hQ.bind(hQ):function(){return hQ.apply(hQ,arguments)},vQ={}.propertyIsEnumerable,yQ=Object.getOwnPropertyDescriptor,mQ={f:yQ&&!vQ.call({1:2},1)?function(e){var t=yQ(this,e);return!!t&&t.enumerable}:vQ},bQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wQ=Function.prototype,EQ=wQ.bind,DQ=wQ.call,CQ=EQ&&EQ.bind(DQ),xQ=EQ?function(e){return e&&CQ(DQ,e)}:function(e){return e&&function(){return DQ.apply(e,arguments)}},SQ=xQ({}.toString),AQ=xQ("".slice),OQ=function(e){return AQ(SQ(e),8,-1)},kQ=fQ.Object,BQ=xQ("".split),FQ=dQ(function(){return!kQ("z").propertyIsEnumerable(0)})?function(e){return"String"==OQ(e)?BQ(e,""):kQ(e)}:kQ,TQ=fQ.TypeError,_Q=function(e){if(null==e)throw TQ("Can't call method on "+e);return e},PQ=function(e){return FQ(_Q(e))},jQ=function(e){return"function"==typeof e},NQ=function(e){return"object"==typeof e?null!==e:jQ(e)},IQ=function(e,t){return arguments.length<2?function(e){return jQ(e)?e:void 0}(fQ[e]):fQ[e]&&fQ[e][t]},LQ=xQ({}.isPrototypeOf),RQ=IQ("navigator","userAgent")||"",MQ=fQ.process,zQ=fQ.Deno,HQ=MQ&&MQ.versions||zQ&&zQ.version,VQ=HQ&&HQ.v8;VQ&&(lQ=(sQ=VQ.split("."))[0]>0&&sQ[0]<4?1:+(sQ[0]+sQ[1])),!lQ&&RQ&&(!(sQ=RQ.match(/Edge\/(\d+)/))||sQ[1]>=74)&&(sQ=RQ.match(/Chrome\/(\d+)/))&&(lQ=+sQ[1]);var $Q=lQ,UQ=!!Object.getOwnPropertySymbols&&!dQ(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$Q&&$Q<41}),WQ=UQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,GQ=fQ.Object,qQ=WQ?function(e){return"symbol"==typeof e}:function(e){var t=IQ("Symbol");return jQ(t)&&LQ(t.prototype,GQ(e))},KQ=fQ.String,YQ=function(e){try{return KQ(e)}catch(t){return"Object"}},XQ=fQ.TypeError,ZQ=function(e){if(jQ(e))return e;throw XQ(YQ(e)+" is not a function")},JQ=function(e,t){var n=e[t];return null==n?void 0:ZQ(n)},QQ=fQ.TypeError,e0=Object.defineProperty,t0=function(e,t){try{e0(fQ,e,{value:t,configurable:!0,writable:!0})}catch(cP){fQ[e]=t}return t},n0=fQ["__core-js_shared__"]||t0("__core-js_shared__",{}),r0=uQ(function(e){(e.exports=function(e,t){return n0[e]||(n0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),o0=fQ.Object,i0=function(e){return o0(_Q(e))},a0=xQ({}.hasOwnProperty),u0=Object.hasOwn||function(e,t){return a0(i0(e),t)},s0=0,l0=Math.random(),c0=xQ(1..toString),f0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+c0(++s0+l0,36)},d0=r0("wks"),p0=fQ.Symbol,h0=p0&&p0.for,g0=WQ?p0:p0&&p0.withoutSetter||f0,v0=function(e){if(!u0(d0,e)||!UQ&&"string"!=typeof d0[e]){var t="Symbol."+e;UQ&&u0(p0,e)?d0[e]=p0[e]:d0[e]=WQ&&h0?h0(t):g0(t)}return d0[e]},y0=fQ.TypeError,m0=v0("toPrimitive"),b0=function(e){var t=function(e){if(!NQ(e)||qQ(e))return e;var t,n=JQ(e,m0);if(n){if(t=gQ(n,e,"string"),!NQ(t)||qQ(t))return t;throw y0("Can't convert object to primitive value")}return function(e){var t,n;if(jQ(t=e.toString)&&!NQ(n=gQ(t,e)))return n;if(jQ(t=e.valueOf)&&!NQ(n=gQ(t,e)))return n;throw QQ("Can't convert object to primitive value")}(e)}(e);return qQ(t)?t:t+""},w0=fQ.document,E0=NQ(w0)&&NQ(w0.createElement),D0=function(e){return E0?w0.createElement(e):{}},C0=!pQ&&!dQ(function(){return 7!=Object.defineProperty(D0("div"),"a",{get:function(){return 7}}).a}),x0=Object.getOwnPropertyDescriptor,S0={f:pQ?x0:function(e,t){if(e=PQ(e),t=b0(t),C0)try{return x0(e,t)}catch(n){}if(u0(e,t))return bQ(!gQ(mQ.f,e,t),e[t])}},A0=fQ.String,O0=fQ.TypeError,k0=function(e){if(NQ(e))return e;throw O0(A0(e)+" is not an object")},B0=fQ.TypeError,F0=Object.defineProperty,T0={f:pQ?F0:function(e,t,n){if(k0(e),t=b0(t),k0(n),C0)try{return F0(e,t,n)}catch(r){}if("get"in n||"set"in n)throw B0("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_0=pQ?function(e,t,n){return T0.f(e,t,bQ(1,n))}:function(e,t,n){return e[t]=n,e},P0=xQ(Function.toString);jQ(n0.inspectSource)||(n0.inspectSource=function(e){return P0(e)});var j0,N0,I0,L0=n0.inspectSource,R0=fQ.WeakMap,M0=jQ(R0)&&/native code/.test(L0(R0)),z0=r0("keys"),H0=function(e){return z0[e]||(z0[e]=f0(e))},V0={},$0=fQ.TypeError,U0=fQ.WeakMap;if(M0||n0.state){var W0=n0.state||(n0.state=new U0),G0=xQ(W0.get),q0=xQ(W0.has),K0=xQ(W0.set);j0=function(e,t){if(q0(W0,e))throw new $0("Object already initialized");return t.facade=e,K0(W0,e,t),t},N0=function(e){return G0(W0,e)||{}},I0=function(e){return q0(W0,e)}}else{var Y0=H0("state");V0[Y0]=!0,j0=function(e,t){if(u0(e,Y0))throw new $0("Object already initialized");return t.facade=e,_0(e,Y0,t),t},N0=function(e){return u0(e,Y0)?e[Y0]:{}},I0=function(e){return u0(e,Y0)}}var X0={get:N0,enforce:function(e){return I0(e)?N0(e):j0(e,{})}},Z0=Function.prototype,J0=pQ&&Object.getOwnPropertyDescriptor,Q0=u0(Z0,"name"),e1={PROPER:Q0&&"something"===function(){}.name,CONFIGURABLE:Q0&&(!pQ||pQ&&J0(Z0,"name").configurable)},t1=uQ(function(e){var t=e1.CONFIGURABLE,n=X0.get,r=X0.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;jQ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!u0(i,"name")||t&&i.name!==f)&&_0(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==fQ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:_0(e,n,i)):l?e[n]=i:t0(n,i)})(Function.prototype,"toString",function(){return jQ(this)&&n(this).source||L0(this)})}),n1=Math.ceil,r1=Math.floor,o1=function(e){var t=+e;return t!=t||0===t?0:(t>0?r1:n1)(t)},i1=Math.max,a1=Math.min,u1=function(e,t){var n=o1(e);return n<0?i1(n+t,0):a1(n,t)},s1=Math.min,l1=function(e){return e>0?s1(o1(e),9007199254740991):0},c1=function(e){return l1(e.length)},f1=function(e){return function(t,n,r){var o,i=PQ(t),a=c1(i),u=u1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),d1=xQ([].push),p1=function(e,t){var n,r=PQ(e),o=0,i=[];for(n in r)!u0(V0,n)&&u0(r,n)&&d1(i,n);for(;t.length>o;)u0(r,n=t[o++])&&(~f1(i,n)||d1(i,n));return i},h1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g1=h1.concat("length","prototype"),v1={f:Object.getOwnPropertyNames||function(e){return p1(e,g1)}},y1={f:Object.getOwnPropertySymbols},m1=xQ([].concat),b1=IQ("Reflect","ownKeys")||function(e){var t=v1.f(k0(e)),n=y1.f;return n?m1(t,n(e)):t},w1=function(e,t){for(var n=b1(t),r=T0.f,o=S0.f,i=0;i<n.length;i++){var a=n[i];u0(e,a)||r(e,a,o(t,a))}},E1=/#|\.prototype\./,D1=function(e,t){var n=x1[C1(e)];return n==A1||n!=S1&&(jQ(t)?dQ(t):!!t)},C1=D1.normalize=function(e){return String(e).replace(E1,".").toLowerCase()},x1=D1.data={},S1=D1.NATIVE="N",A1=D1.POLYFILL="P",O1=D1,k1=S0.f,B1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?fQ:l?fQ[u]||t0(u,{}):(fQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=k1(n,r))&&a.value:n[r],!O1(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;w1(i,o)}(e.sham||o&&o.sham)&&_0(i,"sham",!0),t1(n,r,i,e)}},F1={};F1[v0("toStringTag")]="z";var T1="[object z]"===String(F1),_1=v0("toStringTag"),P1=fQ.Object,j1="Arguments"==OQ(function(){return arguments}()),N1=T1?OQ:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=P1(e),_1))?n:j1?OQ(t):"Object"==(r=OQ(t))&&jQ(t.callee)?"Arguments":r},I1=fQ.String,L1=function(e){if("Symbol"===N1(e))throw TypeError("Cannot convert a Symbol value to a string");return I1(e)},R1=/"/g,M1=xQ("".replace);B1({target:"String",proto:!0,forced:dQ(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=L1(_Q(this)),r="<a",(r+=' name="'+M1(L1(t),R1,""")+'"')+">"+n+"</a>";var t,n,r}});var z1,H1=function(){var e=k0(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},V1=fQ.RegExp,$1=dQ(function(){var e=V1("a","y");return e.lastIndex=2,null!=e.exec("abcd")});$1||dQ(function(){return!V1("a","y").sticky});var U1={BROKEN_CARET:$1||dQ(function(){var e=V1("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:$1},W1=Object.keys||function(e){return p1(e,h1)},G1=pQ?Object.defineProperties:function(e,t){k0(e);for(var n,r=PQ(t),o=W1(t),i=o.length,a=0;i>a;)T0.f(e,n=o[a++],r[n]);return e},q1=IQ("document","documentElement"),K1=H0("IE_PROTO"),Y1=function(){},X1=function(e){return"<script>"+e+"<\/script>"},Z1=function(e){e.write(X1("")),e.close();var t=e.parentWindow.Object;return e=null,t},J1=function(){try{z1=new ActiveXObject("htmlfile")}catch(r){}var e,t;J1="undefined"!=typeof document?document.domain&&z1?Z1(z1):((t=D0("iframe")).style.display="none",q1.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(X1("document.F=Object")),e.close(),e.F):Z1(z1);for(var n=h1.length;n--;)delete J1.prototype[h1[n]];return J1()};V0[K1]=!0;var Q1,e2,t2=Object.create||function(e,t){var n;return null!==e?(Y1.prototype=k0(e),n=new Y1,Y1.prototype=null,n[K1]=e):n=J1(),void 0===t?n:G1(n,t)},n2=fQ.RegExp,r2=dQ(function(){var e=n2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),o2=fQ.RegExp,i2=dQ(function(){var e=o2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),a2=X0.get,u2=r0("native-string-replace",String.prototype.replace),s2=RegExp.prototype.exec,l2=s2,c2=xQ("".charAt),f2=xQ("".indexOf),d2=xQ("".replace),p2=xQ("".slice),h2=(e2=/b*/g,gQ(s2,Q1=/a/,"a"),gQ(s2,e2,"a"),0!==Q1.lastIndex||0!==e2.lastIndex),g2=U1.BROKEN_CARET,v2=void 0!==/()??/.exec("")[1];(h2||v2||g2||r2||i2)&&(l2=function(e){var t,n,r,o,i,a,u,s=this,l=a2(s),c=L1(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=gQ(l2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=g2&&s.sticky,h=gQ(H1,s),g=s.source,v=0,y=c;if(p&&(h=d2(h,"y",""),-1===f2(h,"g")&&(h+="g"),y=p2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==c2(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),v2&&(n=new RegExp("^"+g+"$(?!\\s)",h)),h2&&(r=s.lastIndex),o=gQ(s2,p?n:s,y),p?o?(o.input=p2(o.input,v),o[0]=p2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:h2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),v2&&o&&o.length>1&&gQ(u2,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=t2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var y2=l2;B1({target:"RegExp",proto:!0,forced:/./.exec!==y2},{exec:y2});var m2=Array.isArray||function(e){return"Array"==OQ(e)},b2=function(){},w2=[],E2=IQ("Reflect","construct"),D2=/^\s*(?:class|function)\b/,C2=xQ(D2.exec),x2=!D2.exec(b2),S2=function(e){if(!jQ(e))return!1;try{return E2(b2,w2,e),!0}catch(t){return!1}},A2=!E2||dQ(function(){var e;return S2(S2.call)||!S2(Object)||!S2(function(){e=!0})||e})?function(e){if(!jQ(e))return!1;switch(N1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return x2||!!C2(D2,L0(e))}:S2,O2=function(e,t,n){var r=b0(t);r in e?T0.f(e,r,bQ(0,n)):e[r]=n},k2=v0("species"),B2=function(e){return $Q>=51||!dQ(function(){var t=[];return(t.constructor={})[k2]=function(){return{foo:1}},1!==t[e](Boolean).foo})},F2=xQ([].slice),T2=B2("slice"),_2=v0("species"),P2=fQ.Array,j2=Math.max;function N2(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function I2(e){var t=e.selection;if(null==t)return!1;var n=N2(Rf.nodes(e,{match:function(e){return FO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=N2(n,2)[1],o=Rf.start(e,r);if(Zf.equals(t.anchor,o))return!0}return!1}function L2(e,t){var n,r,o=Rf.nodes(e,{at:t,match:function(e){return"table"===FO.getNodeType(e)}}),i=!1;try{for(var a=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}B1({target:"Array",proto:!0,forced:!T2},{slice:function(e,t){var n,r,o,i=PQ(this),a=c1(i),u=u1(e,a),s=u1(void 0===t?a:t,a);if(m2(i)&&(n=i.constructor,(A2(n)&&(n===P2||m2(n.prototype))||NQ(n)&&null===(n=n[_2]))&&(n=void 0),n===P2||void 0===n))return F2(i,u,s);for(r=new(void 0===n?P2:n)(j2(s-u,0)),o=0;u<s;u++,o++)u in i&&O2(r,o,i[u]);return r.length=o,r}});var R2=xQ(xQ.bind),M2=v0("species"),z2=fQ.Array,H2=function(e,t){return new(m2(n=e)&&(r=n.constructor,(A2(r)&&(r===z2||m2(r.prototype))||NQ(r)&&null===(r=r[M2]))&&(r=void 0)),void 0===r?z2:r)(0===t?0:t);var n,r},V2=xQ([].push),$2=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=i0(s),g=FQ(h),v=function(e,t){return ZQ(e),void 0===t?e:R2?R2(e,t):function(){return e.apply(t,arguments)}}(l,c),y=c1(g),m=0,b=f||H2,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:V2(w,d)}else switch(e){case 4:return!1;case 7:V2(w,d)}return i?-1:r||o?o:w}},U2={forEach:$2(0),map:$2(1),filter:$2(2),find:$2(5)},W2=U2.map;B1({target:"Array",proto:!0,forced:!B2("map")},{map:function(e){return W2(this,e,arguments.length>1?arguments[1]:void 0)}});var G2=T1?{}.toString:function(){return"[object "+N1(this)+"]"};function q2(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function K2(e){return q2(e).every(function(e){return!!e.isHeader})}T1||t1(Object.prototype,"toString",G2,{unsafe:!0});var Y2=e1.PROPER,X2=RegExp.prototype,Z2=X2.toString,J2=xQ(H1),Q2=dQ(function(){return"/a/b"!=Z2.call({source:"a",flags:"b"})}),e4=Y2&&"toString"!=Z2.name;(Q2||e4)&&t1(RegExp.prototype,"toString",function(){var e=k0(this),t=L1(e.source),n=e.flags;return"/"+t+"/"+L1(void 0===n&&LQ(X2,e)&&!("flags"in X2)?J2(e):n)},{unsafe:!0});var t4=v0("unscopables"),n4=Array.prototype;null==n4[t4]&&T0.f(n4,t4,{configurable:!0,value:t2(null)});var r4=U2.find,o4=!0;"find"in[]&&Array(1).find(function(){o4=!1}),B1({target:"Array",proto:!0,forced:o4},{find:function(e){return r4(this,e,arguments.length>1?arguments[1]:void 0)}}),n4[t4].find=!0;var i4=Function.prototype,a4=i4.apply,u4=i4.bind,s4=i4.call,l4="object"==typeof Reflect&&Reflect.apply||(u4?s4.bind(a4):function(){return s4.apply(a4,arguments)}),c4=v0("species"),f4=RegExp.prototype,d4=function(e,t,n,r){var o=v0(e),i=!dQ(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=i&&!dQ(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t});if(!i||!a||n){var u=xQ(/./[o]),s=t(o,""[e],function(e,t,n,r,o){var a=xQ(e),s=t.exec;return s===y2||s===f4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});t1(String.prototype,e,s[0]),t1(f4,o,s[1])}r&&_0(f4[o],"sham",!0)},p4=v0("match"),h4=fQ.TypeError,g4=v0("species"),v4=xQ("".charAt),y4=xQ("".charCodeAt),m4=xQ("".slice),b4=function(e){return function(t,n){var r,o,i=L1(_Q(t)),a=o1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=y4(i,a))<55296||r>56319||a+1===u||(o=y4(i,a+1))<56320||o>57343?e?v4(i,a):r:e?m4(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),w4=function(e,t,n){return t+(n?b4(e,t).length:1)},E4=fQ.Array,D4=Math.max,C4=function(e,t,n){for(var r=c1(e),o=u1(t,r),i=u1(void 0===n?r:n,r),a=E4(D4(i-o,0)),u=0;o<i;o++,u++)O2(a,u,e[o]);return a.length=u,a},x4=fQ.TypeError,S4=function(e,t){var n=e.exec;if(jQ(n)){var r=gQ(n,e,t);return null!==r&&k0(r),r}if("RegExp"===OQ(e))return gQ(y2,e,t);throw x4("RegExp#exec called on incompatible receiver")},A4=U1.UNSUPPORTED_Y,O4=Math.min,k4=[].push,B4=xQ(/./.exec),F4=xQ(k4),T4=xQ("".slice);d4("split",function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=L1(_Q(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!NQ(r=e)||!(void 0!==(o=r[p4])?o:"RegExp"==OQ(r)))return gQ(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=gQ(y2,p,i))&&!((s=p.lastIndex)>d&&(F4(c,T4(i,d,u.index)),u.length>1&&u.index<i.length&&l4(k4,c,C4(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&B4(p,"")||F4(c,""):F4(c,T4(i,d)),c.length>a?C4(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:gQ(t,this,e,n)}:t,[function(t,n){var o=_Q(this),i=null==t?void 0:JQ(t,e);return i?gQ(i,t,o,n):gQ(r,L1(o),t,n)},function(e,o){var i=k0(this),a=L1(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=k0(i).constructor)||null==(l=k0(c)[g4])?s:function(e){if(A2(e))return e;throw h4(YQ(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(A4?"g":"y"),h=new f(A4?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===S4(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=A4?0:y;var b,w=S4(h,A4?T4(a,y):a);if(null===w||(b=O4(l1(h.lastIndex+(A4?y:0)),a.length))===v)y=w4(a,y,d);else{if(F4(m,T4(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(F4(m,w[E]),m.length===g)return m;y=v=b}}return F4(m,T4(a,v)),m}]},!!dQ(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),A4);var _4="\t\n\v\f\r \u2028\u2029\ufeff",P4=xQ("".replace),j4="["+_4+"]",N4=RegExp("^"+j4+j4+"*"),I4=RegExp(j4+j4+"*$"),L4={trim:function(e){return function(t){var n=L1(_Q(t));return 1&e&&(n=P4(n,N4,"")),2&e&&(n=P4(n,I4,"")),n}}(3)},R4=e1.PROPER,M4=L4.trim;function z4(e){return e.length?e[0].tagName.toLowerCase():""}B1({target:"String",proto:!0,forced:function(e){return dQ(function(){return!!_4[e]()||"
"!=="
"[e]()||R4&&_4[e].name!==e})}("trim")},{trim:function(){return M4(this)}}),B1({global:!0},{globalThis:fQ}),uh&&(zp.fn.append=uh),Kp&&(zp.fn.on=Kp),mh&&(zp.fn.focus=mh),Up&&(zp.fn.attr=Up),qp&&(zp.fn.val=qp),oh&&(zp.fn.html=oh),Gp&&(zp.fn.dataset=Gp),Hp&&(zp.fn.addClass=Hp),Vp&&(zp.fn.removeClass=Vp),dh&&(zp.fn.children=dh),nh&&(zp.fn.each=nh),fh&&(zp.fn.find=fh);var H4=!1,V4=0,$4=0,U4=null,W4=null,G4=zp("body");function q4(e){H4=!1,W4=null,U4=null,G4.off("mousemove",K4),G4.off("mouseup",q4)}G4.on("mousedown",function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),H4=!0;var n=e.clientX;V4=n;var r=t.getBoundingClientRect().width;$4=r,G4.on("mousemove",K4),G4.on("mouseup",q4)}});var K4=Zh(function(e){if(H4&&null!=W4&&null!=U4){e.preventDefault();var t=e.clientX,n=$4+(t-V4);(n=Math.floor(100*n)/100)<30&&(n=30),Ad.setNodes(W4,{width:n.toString()},{at:U4})}},100),Y4={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(td.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=FO.findPath(e,t),a=Rf.start(e,i),u=Rf.end(e,i),s=Zf.compare(r,u)<=0&&Zf.compare(r,a)>=0,l=Zf.compare(o,u)<=0&&Zf.compare(o,a)>=0;return!!(s&&l&&qf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return Fg("div",{className:"table-container","data-selected":FO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=FO.findPath(n,e),o=Rf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Fg("table",{width:i,contentEditable:r},Fg("colgroup",null,q2(e).map(function(e){var t=e.width;return Fg("col",{width:void 0===t?"auto":t})})),Fg("tbody",null,t)))}},X4={type:"table-row",renderElem:function(e,t,n){return Fg("tr",null,t)}},Z4={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=FO.getParentNode(e,t);if(null==n)return!1;var r=FO.getParentNode(e,n);return null!=r&&q2(r).some(function(e){return e===t})}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?Fg(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Zh(function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;H4||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",W4=n,U4=FO.findPath(n,e)):H4||(r.style.cursor="auto",W4=null,U4=null))}},100)}},t):Fg("td",{colSpan:a,rowSpan:s},t)}},J4={selector:"table",preParseHtml:function(e){var t=zp(e);if("table"!==z4(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},Q4=U2.filter;B1({target:"Array",proto:!0,forced:!B2("filter")},{filter:function(e){return Q4(this,e,arguments.length>1?arguments[1]:void 0)}});var e6=Math.floor,t6=xQ("".charAt),n6=xQ("".replace),r6=xQ("".slice),o6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,i6=/\$([$&'`]|\d{1,2})/g,a6=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=i6;return void 0!==o&&(o=i0(o),s=o6),n6(i,s,function(i,s){var l;switch(t6(s,0)){case"$":return"$";case"&":return e;case"`":return r6(t,0,n);case"'":return r6(t,a);case"<":l=o[r6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=e6(c/10);return 0===f?i:f<=u?void 0===r[f-1]?t6(s,1):r[f-1]+t6(s,1):i}l=r[c-1]}return void 0===l?"":l})},u6=v0("replace"),s6=Math.max,l6=Math.min,c6=xQ([].concat),f6=xQ([].push),d6=xQ("".indexOf),p6=xQ("".slice),h6="$0"==="a".replace(/./,"$0"),g6=!!/./[u6]&&""===/./[u6]("a","$0");d4("replace",function(e,t,n){var r=g6?"$":"$0";return[function(e,n){var r=_Q(this),o=null==e?void 0:JQ(e,u6);return o?gQ(o,e,r,n):gQ(t,L1(r),e,n)},function(e,o){var i=k0(this),a=L1(e);if("string"==typeof o&&-1===d6(o,r)&&-1===d6(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=jQ(o);s||(o=L1(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=S4(i,a);if(null===d)break;if(f6(f,d),!l)break;""===L1(d[0])&&(i.lastIndex=w4(a,l1(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=L1((d=f[v])[0]),m=s6(l6(o1(d.index),a.length),0),b=[],w=1;w<d.length;w++)f6(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=c6([y],b,m,a);void 0!==E&&f6(D,E);var C=L1(l4(o,void 0,D))}else C=a6(y,a,m,b,E,o);m>=g&&(h+=p6(a,g,m)+C,g=m+y.length)}return h+p6(a,g)}]},!!dQ(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!h6||g6);var v6={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e);0===(t=t.filter(function(e){return!!sd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===z4(r),colSpan:o,rowSpan:i,width:a,children:t}}},y6={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(e){return"table-cell"===FO.getNodeType(e)})}}},m6={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=zp(e),o="auto";return"100%"===function(e){for(var t="",n=(e.attr("style")||"").split(";"),r=n.length,o=0;o<r;o++){var i=n[o];if(i){var a=i.split(":");"width"===a[0].trim()&&(t=a[1].trim())}}return t}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter(function(e){return"table-row"===FO.getNodeType(e)})}}},b6=function(){function e(){this.title=sP("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||!!FO.getSelectedElems(e).some(function(t){var n=FO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)})},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=zp('<div class="w-e-panel-content-table"></div>'),r=zp("<span>0 × 0</span>"),o=zp("<table></table>"),i=0;i<10;i++){for(var a=zp("<tr></tr>"),u=0;u<10;u++){var s=zp("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",function(e){var t=e.target;if(null!=t){var n=zp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each(function(e){zp(e).children().each(function(e){var t=zp(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),s.on("click",function(n){n.preventDefault();var r=n.target;if(null!=r){var o=zp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){FO.isSelectedEmptyParagraph(e)&&Ad.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);Ad.insertNodes(e,i,{mode:"highest"})}},e}(),w6=function(){function e(){this.title=sP("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==FO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Ad.removeNodes(e,{mode:"highest"})},e}(),E6=function(){function e(){this.title=sP("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||null==FO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=N2(Rf.nodes(e,{match:function(e){return FO.checkNodeType(e,"table-cell")},universal:!0}),1),r=N2(n[0],2),o=r[0],i=r[1],a=FO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=qf.parent(i),f=qf.next(c);Ad.insertNodes(e,s,{at:f})}}},e}(),D6=function(){function e(){this.title=sP("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||null==FO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=N2(Rf.nodes(e,{match:function(e){return FO.checkNodeType(e,"table-row")},universal:!0}),1),r=N2(n[0],2),o=r[0],i=r[1],a=FO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Ad.removeNodes(e,{mode:"highest"}):Ad.removeNodes(e,{at:i})}},e}(),C6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},x6=D0("span").classList,S6=x6&&x6.constructor&&x6.constructor.prototype,A6=S6===Object.prototype?void 0:S6,O6=U2.forEach,k6=function(){var e=[].forEach;return!!e&&dQ(function(){e.call(null,function(){throw 1},1)})}(),B6=k6?[].forEach:function(e){return O6(this,e,arguments.length>1?arguments[1]:void 0)},F6=function(e){if(e&&e.forEach!==B6)try{_0(e,"forEach",B6)}catch(t){e.forEach=B6}};for(var T6 in C6)C6[T6]&&F6(fQ[T6]&&fQ[T6].prototype);F6(A6);var _6=function(){function e(){this.title=sP("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||null==FO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=N2(Rf.nodes(e,{match:function(e){return FO.checkNodeType(e,"table-cell")},universal:!0}),1),r=N2(n[0],2),o=r[0],i=r[1],a=FO.getParentNode(e,o);if(null!=a){var u=FO.getParentNode(e,a);null!=u&&(u.children||[]).forEach(function(t,n){_f.isElement(t)&&(t.children||[]).forEach(function(t){var r=FO.findPath(e,t);if(r.length===i.length&&iQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&K2(u)&&(o.isHeader=!0),Ad.insertNodes(e,o,{at:r})}})})}}},e}(),P6=function(){function e(){this.title=sP("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||null==FO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=N2(Rf.nodes(e,{match:function(e){return FO.checkNodeType(e,"table-cell")},universal:!0}),1),r=N2(n[0],2),o=r[0],i=r[1],a=FO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Ad.removeNodes(e,{mode:"highest"});else{var s=FO.getParentNode(e,a);null!=s&&(s.children||[]).forEach(function(t){_f.isElement(t)&&(t.children||[]).forEach(function(t){var n=FO.findPath(e,t);n.length===i.length&&iQ(n.slice(-1),i.slice(-1))&&Ad.removeNodes(e,{at:n})})})}}},e}(),j6=function(){function e(){this.title=sP("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=FO.getSelectedNodeByType(e,"table");return null!=t&&K2(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||null==FO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=FO.getSelectedNodeByType(e,"table");null!=r&&q2(r).forEach(function(t){return Ad.setNodes(e,{isHeader:n},{at:FO.findPath(e,t)})})}},e}(),N6=function(){function e(){this.title=sP("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=FO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||null==FO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Ad.setNodes(e,n,{mode:"highest"})}},e}(),I6={renderElems:[Y4,X4,Z4],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[J4],parseElemsHtml:[v6,y6,m6],menus:[{key:"insertTable",factory:function(){return new b6}},{key:"deleteTable",factory:function(){return new w6}},{key:"insertTableRow",factory:function(){return new E6}},{key:"deleteTableRow",factory:function(){return new D6}},{key:"insertTableCol",factory:function(){return new _6}},{key:"deleteTableCol",factory:function(){return new P6}},{key:"tableHeader",factory:function(){return new j6}},{key:"tableFullWidth",factory:function(){return new N6}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==FO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!I2(s)){var t=s.selection;if(t){var r=Rf.before(s,t);if(r){var o=L2(s,r),i=L2(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(FO.getSelectedNodeByType(s,"table")){var n=Rf.above(e);FO.checkNodeType(n[0],"table-cell")&&Ad.select(e,n[1]);var r=Rf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Rf.above(e,{at:r[1]}))&&void 0!==t?t:r),Ad.select(e,r[1]);else{var o=s.children||[],i=o.length;if(FO.checkNodeType(o[i-1],"table")){var u=FO.genEmptyParagraph();Ad.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){I2(s)||r(e)},s.normalizeNode=function(e){var t=N2(e,2),n=t[0],r=t[1];if("table"!==FO.getNodeType(n))return o([n,r]);if(FO.isLastNode(s,n)){var i=FO.genEmptyParagraph();Ad.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=FO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Rf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=FO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(qf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==$f.string(t).length){var o=FO.findPath(s,t),i={anchor:Rf.start(s,o),focus:Rf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};uP("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),uP("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var L6=function(){return L6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},L6.apply(this,arguments)};function R6(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}u((r=r.apply(e,[])).next())})}function M6(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function z6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var H6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function V6(e){var t={exports:{}};return e(t,t.exports),t.exports}var $6,U6,W6=function(e){return e&&e.Math==Math&&e},G6=W6("object"==typeof globalThis&&globalThis)||W6("object"==typeof window&&window)||W6("object"==typeof self&&self)||W6("object"==typeof H6&&H6)||function(){return this}()||Function("return this")(),q6=function(e){try{return!!e()}catch(t){return!0}},K6=!q6(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Y6=Function.prototype.call,X6=Y6.bind?Y6.bind(Y6):function(){return Y6.apply(Y6,arguments)},Z6={}.propertyIsEnumerable,J6=Object.getOwnPropertyDescriptor,Q6={f:J6&&!Z6.call({1:2},1)?function(e){var t=J6(this,e);return!!t&&t.enumerable}:Z6},e3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},t3=Function.prototype,n3=t3.bind,r3=t3.call,o3=n3&&n3.bind(r3),i3=n3?function(e){return e&&o3(r3,e)}:function(e){return e&&function(){return r3.apply(e,arguments)}},a3=i3({}.toString),u3=i3("".slice),s3=function(e){return u3(a3(e),8,-1)},l3=G6.Object,c3=i3("".split),f3=q6(function(){return!l3("z").propertyIsEnumerable(0)})?function(e){return"String"==s3(e)?c3(e,""):l3(e)}:l3,d3=G6.TypeError,p3=function(e){if(null==e)throw d3("Can't call method on "+e);return e},h3=function(e){return f3(p3(e))},g3=function(e){return"function"==typeof e},v3=function(e){return"object"==typeof e?null!==e:g3(e)},y3=function(e,t){return arguments.length<2?function(e){return g3(e)?e:void 0}(G6[e]):G6[e]&&G6[e][t]},m3=i3({}.isPrototypeOf),b3=y3("navigator","userAgent")||"",w3=G6.process,E3=G6.Deno,D3=w3&&w3.versions||E3&&E3.version,C3=D3&&D3.v8;C3&&(U6=($6=C3.split("."))[0]>0&&$6[0]<4?1:+($6[0]+$6[1])),!U6&&b3&&(!($6=b3.match(/Edge\/(\d+)/))||$6[1]>=74)&&($6=b3.match(/Chrome\/(\d+)/))&&(U6=+$6[1]);var x3=U6,S3=!!Object.getOwnPropertySymbols&&!q6(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&x3&&x3<41}),A3=S3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,O3=G6.Object,k3=A3?function(e){return"symbol"==typeof e}:function(e){var t=y3("Symbol");return g3(t)&&m3(t.prototype,O3(e))},B3=G6.String,F3=function(e){try{return B3(e)}catch(t){return"Object"}},T3=G6.TypeError,_3=function(e){if(g3(e))return e;throw T3(F3(e)+" is not a function")},P3=function(e,t){var n=e[t];return null==n?void 0:_3(n)},j3=G6.TypeError,N3=Object.defineProperty,I3=function(e,t){try{N3(G6,e,{value:t,configurable:!0,writable:!0})}catch(cP){G6[e]=t}return t},L3=G6["__core-js_shared__"]||I3("__core-js_shared__",{}),R3=V6(function(e){(e.exports=function(e,t){return L3[e]||(L3[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),M3=G6.Object,z3=function(e){return M3(p3(e))},H3=i3({}.hasOwnProperty),V3=Object.hasOwn||function(e,t){return H3(z3(e),t)},$3=0,U3=Math.random(),W3=i3(1..toString),G3=function(e){return"Symbol("+(void 0===e?"":e)+")_"+W3(++$3+U3,36)},q3=R3("wks"),K3=G6.Symbol,Y3=K3&&K3.for,X3=A3?K3:K3&&K3.withoutSetter||G3,Z3=function(e){if(!V3(q3,e)||!S3&&"string"!=typeof q3[e]){var t="Symbol."+e;S3&&V3(K3,e)?q3[e]=K3[e]:q3[e]=A3&&Y3?Y3(t):X3(t)}return q3[e]},J3=G6.TypeError,Q3=Z3("toPrimitive"),e5=function(e){var t=function(e){if(!v3(e)||k3(e))return e;var t,n=P3(e,Q3);if(n){if(t=X6(n,e,"string"),!v3(t)||k3(t))return t;throw J3("Can't convert object to primitive value")}return function(e){var t,n;if(g3(t=e.toString)&&!v3(n=X6(t,e)))return n;if(g3(t=e.valueOf)&&!v3(n=X6(t,e)))return n;throw j3("Can't convert object to primitive value")}(e)}(e);return k3(t)?t:t+""},t5=G6.document,n5=v3(t5)&&v3(t5.createElement),r5=function(e){return n5?t5.createElement(e):{}},o5=!K6&&!q6(function(){return 7!=Object.defineProperty(r5("div"),"a",{get:function(){return 7}}).a}),i5=Object.getOwnPropertyDescriptor,a5={f:K6?i5:function(e,t){if(e=h3(e),t=e5(t),o5)try{return i5(e,t)}catch(n){}if(V3(e,t))return e3(!X6(Q6.f,e,t),e[t])}},u5=G6.String,s5=G6.TypeError,l5=function(e){if(v3(e))return e;throw s5(u5(e)+" is not an object")},c5=G6.TypeError,f5=Object.defineProperty,d5={f:K6?f5:function(e,t,n){if(l5(e),t=e5(t),l5(n),o5)try{return f5(e,t,n)}catch(r){}if("get"in n||"set"in n)throw c5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},p5=K6?function(e,t,n){return d5.f(e,t,e3(1,n))}:function(e,t,n){return e[t]=n,e},h5=i3(Function.toString);g3(L3.inspectSource)||(L3.inspectSource=function(e){return h5(e)});var g5,v5,y5,m5=L3.inspectSource,b5=G6.WeakMap,w5=g3(b5)&&/native code/.test(m5(b5)),E5=R3("keys"),D5=function(e){return E5[e]||(E5[e]=G3(e))},C5={},x5=G6.TypeError,S5=G6.WeakMap;if(w5||L3.state){var A5=L3.state||(L3.state=new S5),O5=i3(A5.get),k5=i3(A5.has),B5=i3(A5.set);g5=function(e,t){if(k5(A5,e))throw new x5("Object already initialized");return t.facade=e,B5(A5,e,t),t},v5=function(e){return O5(A5,e)||{}},y5=function(e){return k5(A5,e)}}else{var F5=D5("state");C5[F5]=!0,g5=function(e,t){if(V3(e,F5))throw new x5("Object already initialized");return t.facade=e,p5(e,F5,t),t},v5=function(e){return V3(e,F5)?e[F5]:{}},y5=function(e){return V3(e,F5)}}var T5={set:g5,get:v5,has:y5,enforce:function(e){return y5(e)?v5(e):g5(e,{})},getterFor:function(e){return function(t){var n;if(!v3(t)||(n=v5(t)).type!==e)throw x5("Incompatible receiver, "+e+" required");return n}}},_5=Function.prototype,P5=K6&&Object.getOwnPropertyDescriptor,j5=V3(_5,"name"),N5={EXISTS:j5,PROPER:j5&&"something"===function(){}.name,CONFIGURABLE:j5&&(!K6||K6&&P5(_5,"name").configurable)},I5=V6(function(e){var t=N5.CONFIGURABLE,n=T5.get,r=T5.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;g3(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!V3(i,"name")||t&&i.name!==f)&&p5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==G6?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:p5(e,n,i)):l?e[n]=i:I3(n,i)})(Function.prototype,"toString",function(){return g3(this)&&n(this).source||m5(this)})}),L5=Math.ceil,R5=Math.floor,M5=function(e){var t=+e;return t!=t||0===t?0:(t>0?R5:L5)(t)},z5=Math.max,H5=Math.min,V5=function(e,t){var n=M5(e);return n<0?z5(n+t,0):H5(n,t)},$5=Math.min,U5=function(e){return e>0?$5(M5(e),9007199254740991):0},W5=function(e){return U5(e.length)},G5=function(e){return function(t,n,r){var o,i=h3(t),a=W5(i),u=V5(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},q5={includes:G5(!0),indexOf:G5(!1)},K5=q5.indexOf,Y5=i3([].push),X5=function(e,t){var n,r=h3(e),o=0,i=[];for(n in r)!V3(C5,n)&&V3(r,n)&&Y5(i,n);for(;t.length>o;)V3(r,n=t[o++])&&(~K5(i,n)||Y5(i,n));return i},Z5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],J5=Z5.concat("length","prototype"),Q5={f:Object.getOwnPropertyNames||function(e){return X5(e,J5)}},e8={f:Object.getOwnPropertySymbols},t8=i3([].concat),n8=y3("Reflect","ownKeys")||function(e){var t=Q5.f(l5(e)),n=e8.f;return n?t8(t,n(e)):t},r8=function(e,t){for(var n=n8(t),r=d5.f,o=a5.f,i=0;i<n.length;i++){var a=n[i];V3(e,a)||r(e,a,o(t,a))}},o8=/#|\.prototype\./,i8=function(e,t){var n=u8[a8(e)];return n==l8||n!=s8&&(g3(t)?q6(t):!!t)},a8=i8.normalize=function(e){return String(e).replace(o8,".").toLowerCase()},u8=i8.data={},s8=i8.NATIVE="N",l8=i8.POLYFILL="P",c8=i8,f8=a5.f,d8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?G6:l?G6[u]||I3(u,{}):(G6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=f8(n,r))&&a.value:n[r],!c8(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;r8(i,o)}(e.sham||o&&o.sham)&&p5(i,"sham",!0),I5(n,r,i,e)}},p8={};p8[Z3("toStringTag")]="z";var h8="[object z]"===String(p8),g8=Z3("toStringTag"),v8=G6.Object,y8="Arguments"==s3(function(){return arguments}()),m8=h8?s3:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=v8(e),g8))?n:y8?s3(t):"Object"==(r=s3(t))&&g3(t.callee)?"Arguments":r},b8=G6.String,w8=function(e){if("Symbol"===m8(e))throw TypeError("Cannot convert a Symbol value to a string");return b8(e)},E8="\t\n\v\f\r \u2028\u2029\ufeff",D8=i3("".replace),C8="["+E8+"]",x8=RegExp("^"+C8+C8+"*"),S8=RegExp(C8+C8+"*$"),A8={trim:function(e){return function(t){var n=w8(p3(t));return 1&e&&(n=D8(n,x8,"")),2&e&&(n=D8(n,S8,"")),n}}(3)},O8=N5.PROPER,k8=A8.trim;function B8(e){return e.length?e[0].tagName.toLowerCase():""}function F8(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=zp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}d8({target:"String",proto:!0,forced:q6(function(){return!!E8.trim()||"
"!=="
".trim()||O8&&"trim"!==E8.trim.name})},{trim:function(){return k8(this)}}),d8({global:!0},{globalThis:G6}),uh&&(zp.fn.append=uh),Kp&&(zp.fn.on=Kp),mh&&(zp.fn.focus=mh),Up&&(zp.fn.attr=Up),qp&&(zp.fn.val=qp),oh&&(zp.fn.html=oh),lh&&(zp.fn.parent=lh),$p&&(zp.fn.hasClass=$p),hh&&(zp.fn.empty=hh);var T8,_8={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=FO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Fg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:F8(a,c,d)});else{var h=Fg("video",{poster:s,controls:!0},Fg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=Fg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return cg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},P8={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=F8(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},j8=Object.keys||function(e){return X5(e,Z5)},N8=K6?Object.defineProperties:function(e,t){l5(e);for(var n,r=h3(t),o=j8(t),i=o.length,a=0;i>a;)d5.f(e,n=o[a++],r[n]);return e},I8=y3("document","documentElement"),L8=D5("IE_PROTO"),R8=function(){},M8=function(e){return"<script>"+e+"<\/script>"},z8=function(e){e.write(M8("")),e.close();var t=e.parentWindow.Object;return e=null,t},H8=function(){try{T8=new ActiveXObject("htmlfile")}catch(r){}var e,t;H8="undefined"!=typeof document?document.domain&&T8?z8(T8):((t=r5("iframe")).style.display="none",I8.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(M8("document.F=Object")),e.close(),e.F):z8(T8);for(var n=Z5.length;n--;)delete H8.prototype[Z5[n]];return H8()};C5[L8]=!0;var V8=Object.create||function(e,t){var n;return null!==e?(R8.prototype=l5(e),n=new R8,R8.prototype=null,n[L8]=e):n=H8(),void 0===t?n:N8(n,t)},$8=Z3("unscopables"),U8=Array.prototype;null==U8[$8]&&d5.f(U8,$8,{configurable:!0,value:V8(null)});var W8=function(e){U8[$8][e]=!0},G8=q5.includes;d8({target:"Array",proto:!0},{includes:function(e){return G8(this,e,arguments.length>1?arguments[1]:void 0)}}),W8("includes");var q8={selector:"iframe,video,p",preParseHtml:function(e){var t=zp(e),n=t;if("p"===B8(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=zp(o))}}var a=B8(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=zp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},K8=i3(i3.bind),Y8=function(e,t){return _3(e),void 0===t?e:K8?K8(e,t):function(){return e.apply(t,arguments)}},X8=Array.isArray||function(e){return"Array"==s3(e)},Z8=function(){},J8=[],Q8=y3("Reflect","construct"),e7=/^\s*(?:class|function)\b/,t7=i3(e7.exec),n7=!e7.exec(Z8),r7=function(e){if(!g3(e))return!1;try{return Q8(Z8,J8,e),!0}catch(t){return!1}},o7=!Q8||q6(function(){var e;return r7(r7.call)||!r7(Object)||!r7(function(){e=!0})||e})?function(e){if(!g3(e))return!1;switch(m8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return n7||!!t7(e7,m5(e))}:r7,i7=Z3("species"),a7=G6.Array,u7=function(e,t){return new(X8(n=e)&&(r=n.constructor,(o7(r)&&(r===a7||X8(r.prototype))||v3(r)&&null===(r=r[i7]))&&(r=void 0)),void 0===r?a7:r)(0===t?0:t);var n,r},s7=i3([].push),l7=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=z3(s),g=f3(h),v=Y8(l,c),y=W5(g),m=0,b=f||u7,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:s7(w,d)}else switch(e){case 4:return!1;case 7:s7(w,d)}return i?-1:r||o?o:w}},c7={find:l7(5),findIndex:l7(6)},f7=c7.find,d7=!0;"find"in[]&&Array(1).find(function(){d7=!1}),d8({target:"Array",proto:!0,forced:d7},{find:function(e){return f7(this,e,arguments.length>1?arguments[1]:void 0)}}),W8("find");var p7=h8?{}.toString:function(){return"[object "+m8(this)+"]"};function h7(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}h8||I5(Object.prototype,"toString",p7,{unsafe:!0});var g7,v7,y7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=zp(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",h7(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",h7(o,i=l.attr("poster")||"",a,u)}},m7=function(){var e=l5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},b7=G6.RegExp,w7=q6(function(){var e=b7("a","y");return e.lastIndex=2,null!=e.exec("abcd")});w7||q6(function(){return!b7("a","y").sticky});var E7={BROKEN_CARET:w7||q6(function(){var e=b7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},D7=G6.RegExp,C7=q6(function(){var e=D7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),x7=G6.RegExp,S7=q6(function(){var e=x7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),A7=T5.get,O7=R3("native-string-replace",String.prototype.replace),k7=RegExp.prototype.exec,B7=k7,F7=i3("".charAt),T7=i3("".indexOf),_7=i3("".replace),P7=i3("".slice),j7=(v7=/b*/g,X6(k7,g7=/a/,"a"),X6(k7,v7,"a"),0!==g7.lastIndex||0!==v7.lastIndex),N7=E7.BROKEN_CARET,I7=void 0!==/()??/.exec("")[1];(j7||I7||N7||C7||S7)&&(B7=function(e){var t,n,r,o,i,a,u,s=this,l=A7(s),c=w8(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=X6(B7,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=N7&&s.sticky,h=X6(m7,s),g=s.source,v=0,y=c;if(p&&(h=_7(h,"y",""),-1===T7(h,"g")&&(h+="g"),y=P7(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==F7(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),I7&&(n=new RegExp("^"+g+"$(?!\\s)",h)),j7&&(r=s.lastIndex),o=X6(k7,p?n:s,y),p?o?(o.input=P7(o.input,v),o[0]=P7(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:j7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),I7&&o&&o.length>1&&X6(O7,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=V8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var L7=B7;d8({target:"RegExp",proto:!0,forced:/./.exec!==L7},{exec:L7});var R7=Function.prototype,M7=R7.apply,z7=R7.bind,H7=R7.call,V7="object"==typeof Reflect&&Reflect.apply||(z7?H7.bind(M7):function(){return H7.apply(M7,arguments)}),$7=(Z3("species"),RegExp.prototype),U7=i3("".charAt),W7=i3("".charCodeAt),G7=i3("".slice),q7={charAt:function(e){return function(t,n){var r,o,i=w8(p3(t)),a=M5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=W7(i,a))<55296||r>56319||a+1===u||(o=W7(i,a+1))<56320||o>57343?e?U7(i,a):r:e?G7(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},K7=q7.charAt,Y7=function(e,t,n){return t+(n?K7(e,t).length:1)},X7=Math.floor,Z7=i3("".charAt),J7=i3("".replace),Q7=i3("".slice),e9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,t9=/\$([$&'`]|\d{1,2})/g,n9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=t9;return void 0!==o&&(o=z3(o),s=e9),J7(i,s,function(i,s){var l;switch(Z7(s,0)){case"$":return"$";case"&":return e;case"`":return Q7(t,0,n);case"'":return Q7(t,a);case"<":l=o[Q7(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=X7(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Z7(s,1):r[f-1]+Z7(s,1):i}l=r[c-1]}return void 0===l?"":l})},r9=G6.TypeError,o9=function(e,t){var n=e.exec;if(g3(n)){var r=X6(n,e,t);return null!==r&&l5(r),r}if("RegExp"===s3(e))return X6(L7,e,t);throw r9("RegExp#exec called on incompatible receiver")},i9=Z3("replace"),a9=Math.max,u9=Math.min,s9=i3([].concat),l9=i3([].push),c9=i3("".indexOf),f9=i3("".slice),d9="$0"==="a".replace(/./,"$0"),p9=!!/./[i9]&&""===/./[i9]("a","$0");function h9(e){return e+"-"+Nh()}!function(e,t,n){var r=Z3(e),o=!q6(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),i=o&&!q6(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e});if(!o||!i||n){var a=i3(/./[r]),u=function(e,t){var n=p9?"$":"$0";return[function(e,n){var r=p3(this),o=null==e?void 0:P3(e,i9);return o?X6(o,e,r,n):X6(t,w8(r),e,n)},function(e,r){var i=l5(this),u=w8(e);if("string"==typeof r&&-1===c9(r,n)&&-1===c9(r,"$<")){var s=function(e,t,n,r,i){var u=i3(e),s=t.exec;return s===L7||s===$7.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}(t,i,u,r);if(s.done)return s.value}var l=g3(r);l||(r=w8(r));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=o9(i,u);if(null===p)break;if(l9(d,p),!c)break;""===w8(p[0])&&(i.lastIndex=Y7(u,U5(i.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=w8((p=d[y])[0]),b=a9(u9(M5(p.index),u.length),0),w=[],E=1;E<p.length;E++)l9(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(l){var C=s9([m],w,b,u);void 0!==D&&l9(C,D);var x=w8(V7(r,void 0,C))}else x=n9(m,u,b,w,D,r);b>=v&&(g+=f9(u,v,b)+x,v=b+m.length)}return g+f9(u,v)}]}(0,""[e]);I5(String.prototype,e,u[0]),I5($7,r,u[1])}}("replace",0,!!q6(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!d9||p9);var g9=G6.Promise,v9=function(e,t,n){for(var r in t)I5(e,r,t[r],n);return e},y9=G6.String,m9=G6.TypeError,b9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return l5(n),function(e){if("object"==typeof e||g3(e))return e;throw m9("Can't set "+y9(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),w9=d5.f,E9=Z3("toStringTag"),D9=function(e,t,n){e&&!V3(e=n?e:e.prototype,E9)&&w9(e,E9,{configurable:!0,value:t})},C9=Z3("species"),x9=G6.TypeError,S9=function(e,t){if(m3(t,e))return e;throw x9("Incorrect invocation")},A9={},O9=Z3("iterator"),k9=Array.prototype,B9=Z3("iterator"),F9=function(e){if(null!=e)return P3(e,B9)||P3(e,"@@iterator")||A9[m8(e)]},T9=G6.TypeError,_9=function(e,t,n){var r,o;l5(e);try{if(!(r=P3(e,"return"))){if("throw"===t)throw n;return n}r=X6(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return l5(r),n},P9=G6.TypeError,j9=function(e,t){this.stopped=e,this.result=t},N9=j9.prototype,I9=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Y8(t,f),v=function(e){return r&&_9(r,"normal",e),new j9(!0,e)},y=function(e){return d?(l5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=F9(e)))throw P9(F3(e)+" is not iterable");if(void 0!==(c=o)&&(A9.Array===c||k9[O9]===c)){for(i=0,a=W5(e);a>i;i++)if((u=y(e[i]))&&m3(N9,u))return u;return new j9(!1)}r=function(e,t){var n=arguments.length<2?F9(e):t;if(_3(n))return l5(X6(n,e));throw T9(F3(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=X6(s,r)).done;){try{u=y(l.value)}catch(m){_9(r,"throw",m)}if("object"==typeof u&&u&&m3(N9,u))return u}return new j9(!1)},L9=Z3("iterator"),R9=!1;try{var M9=0,z9={next:function(){return{done:!!M9++}},return:function(){R9=!0}};z9[L9]=function(){return this},Array.from(z9,function(){throw 2})}catch(Yge){}var H9,V9,$9,U9,W9=function(e,t){if(!R9)return!1;var n=!1;try{var r={};r[L9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},G9=G6.TypeError,q9=Z3("species"),K9=i3([].slice),Y9=/(?:ipad|iphone|ipod).*applewebkit/i.test(b3),X9="process"==s3(G6.process),Z9=G6.setImmediate,J9=G6.clearImmediate,Q9=G6.process,eee=G6.Dispatch,tee=G6.Function,nee=G6.MessageChannel,ree=G6.String,oee=0,iee={};try{H9=G6.location}catch(Yge){}var aee=function(e){if(V3(iee,e)){var t=iee[e];delete iee[e],t()}},uee=function(e){return function(){aee(e)}},see=function(e){aee(e.data)},lee=function(e){G6.postMessage(ree(e),H9.protocol+"//"+H9.host)};Z9&&J9||(Z9=function(e){var t=K9(arguments,1);return iee[++oee]=function(){V7(g3(e)?e:tee(e),void 0,t)},V9(oee),oee},J9=function(e){delete iee[e]},X9?V9=function(e){Q9.nextTick(uee(e))}:eee&&eee.now?V9=function(e){eee.now(uee(e))}:nee&&!Y9?(U9=($9=new nee).port2,$9.port1.onmessage=see,V9=Y8(U9.postMessage,U9)):G6.addEventListener&&g3(G6.postMessage)&&!G6.importScripts&&H9&&"file:"!==H9.protocol&&!q6(lee)?(V9=lee,G6.addEventListener("message",see,!1)):V9="onreadystatechange"in r5("script")?function(e){I8.appendChild(r5("script")).onreadystatechange=function(){I8.removeChild(this),aee(e)}}:function(e){setTimeout(uee(e),0)});var cee,fee,dee,pee,hee,gee,vee,yee,mee={set:Z9},bee=/ipad|iphone|ipod/i.test(b3)&&void 0!==G6.Pebble,wee=/web0s(?!.*chrome)/i.test(b3),Eee=a5.f,Dee=mee.set,Cee=G6.MutationObserver||G6.WebKitMutationObserver,xee=G6.document,See=G6.process,Aee=G6.Promise,Oee=Eee(G6,"queueMicrotask"),kee=Oee&&Oee.value;kee||(cee=function(){var e,t;for(X9&&(e=See.domain)&&e.exit();fee;){t=fee.fn,fee=fee.next;try{t()}catch(n){throw fee?pee():dee=void 0,n}}dee=void 0,e&&e.enter()},Y9||X9||wee||!Cee||!xee?!bee&&Aee&&Aee.resolve?((vee=Aee.resolve(void 0)).constructor=Aee,yee=Y8(vee.then,vee),pee=function(){yee(cee)}):X9?pee=function(){See.nextTick(cee)}:(Dee=Y8(Dee,G6),pee=function(){Dee(cee)}):(hee=!0,gee=xee.createTextNode(""),new Cee(cee).observe(gee,{characterData:!0}),pee=function(){gee.data=hee=!hee}));var Bee,Fee,Tee,_ee,Pee=kee||function(e){var t={fn:e,next:void 0};dee&&(dee.next=t),fee||(fee=t,pee()),dee=t},jee=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=_3(t),this.reject=_3(n)},Nee={f:function(e){return new jee(e)}},Iee=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Lee="object"==typeof window,Ree=mee.set,Mee=Z3("species"),zee="Promise",Hee=T5.getterFor(zee),Vee=T5.set,$ee=T5.getterFor(zee),Uee=g9&&g9.prototype,Wee=g9,Gee=Uee,qee=G6.TypeError,Kee=G6.document,Yee=G6.process,Xee=Nee.f,Zee=Xee,Jee=!!(Kee&&Kee.createEvent&&G6.dispatchEvent),Qee=g3(G6.PromiseRejectionEvent),ete=!1,tte=c8(zee,function(){var e=m5(Wee),t=e!==String(Wee);if(!t&&66===x3)return!0;if(x3>=51&&/native code/.test(e))return!1;var n=new Wee(function(e){e(1)}),r=function(e){e(function(){},function(){})};return(n.constructor={})[Mee]=r,!(ete=n.then(function(){})instanceof r)||!t&&Lee&&!Qee}),nte=tte||!W9(function(e){Wee.all(e).catch(function(){})}),rte=function(e){var t;return!(!v3(e)||!g3(t=e.then))&&t},ote=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Pee(function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&ste(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(qee("Promise-chain cycle")):(u=rte(a))?X6(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ate(e)})}},ite=function(e,t,n){var r,o;Jee?((r=Kee.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),G6.dispatchEvent(r)):r={promise:t,reason:n},!Qee&&(o=G6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=G6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},ate=function(e){X6(Ree,G6,function(){var t,n=e.facade,r=e.value;if(ute(e)&&(t=Iee(function(){X9?Yee.emit("unhandledRejection",r,n):ite("unhandledrejection",n,r)}),e.rejection=X9||ute(e)?2:1,t.error))throw t.value})},ute=function(e){return 1!==e.rejection&&!e.parent},ste=function(e){X6(Ree,G6,function(){var t=e.facade;X9?Yee.emit("rejectionHandled",t):ite("rejectionhandled",t,e.value)})},lte=function(e,t,n){return function(r){e(t,r,n)}},cte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ote(e,!0))},fte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw qee("Promise can't be resolved itself");var r=rte(t);r?Pee(function(){var n={done:!1};try{X6(r,t,lte(fte,n,e),lte(cte,n,e))}catch(o){cte(n,o,e)}}):(e.value=t,e.state=1,ote(e,!1))}catch(o){cte({done:!1},o,e)}}};if(tte&&(Gee=(Wee=function(e){S9(this,Gee),_3(e),X6(Bee,this);var t=Hee(this);try{e(lte(fte,t),lte(cte,t))}catch(n){cte(t,n)}}).prototype,(Bee=function(e){Vee(this,{type:zee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v9(Gee,{then:function(e,t){var n,r,o,i=$ee(this),a=i.reactions,u=Xee((n=Wee,void 0===(o=l5(this).constructor)||null==(r=l5(o)[q9])?n:function(e){if(o7(e))return e;throw G9(F3(e)+" is not a constructor")}(r)));return u.ok=!g3(e)||e,u.fail=g3(t)&&t,u.domain=X9?Yee.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&ote(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),Fee=function(){var e=new Bee,t=Hee(e);this.promise=e,this.resolve=lte(fte,t),this.reject=lte(cte,t)},Nee.f=Xee=function(e){return e===Wee||e===Tee?new Fee(e):Zee(e)},g3(g9)&&Uee!==Object.prototype)){_ee=Uee.then,ete||(I5(Uee,"then",function(e,t){var n=this;return new Wee(function(e,t){X6(_ee,n,e,t)}).then(e,t)},{unsafe:!0}),I5(Uee,"catch",Gee.catch,{unsafe:!0}));try{delete Uee.constructor}catch(Yge){}b9&&b9(Uee,Gee)}function dte(e,t,n){return void 0===n&&(n=""),R6(this,0,void 0,function(){var r,o,i,a,u,s,l;return M6(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){Ad.insertNodes(e,l)}),o(l),[2]}})})}function pte(){return h9("w-e-insert-video")}d8({global:!0,wrap:!0,forced:tte},{Promise:Wee}),D9(Wee,zee,!1),function(){var e=y3("Promise"),t=d5.f;K6&&e&&!e[C9]&&t(e,C9,{configurable:!0,get:function(){return this}})}(),Tee=y3(zee),d8({target:zee,stat:!0,forced:tte},{reject:function(e){var t=Xee(this);return X6(t.reject,void 0,e),t.promise}}),d8({target:zee,stat:!0,forced:tte},{resolve:function(e){return function(e,t){if(l5(e),v3(t)&&t.constructor===e)return t;var n=Nee.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),d8({target:zee,stat:!0,forced:nte},{all:function(e){var t=this,n=Xee(t),r=n.resolve,o=n.reject,i=Iee(function(){var n=_3(t.resolve),i=[],a=0,u=1;I9(e,function(e){var s=a++,l=!1;u++,X6(n,t,e).then(function(e){l||(l=!0,i[s]=e,--u||r(i))},o)}),--u||r(i)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Xee(t),r=n.reject,o=Iee(function(){var o=_3(t.resolve);I9(e,function(e){X6(o,t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var hte=function(){function e(){this.title=sP("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=pte(),this.posterInputId=pte(),this.buttonId=pte()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||!!FO.getSelectedElems(e).some(function(t){var n=FO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)})},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=z6(YT(sP("videoModule.videoSrc"),r,sP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=z6(YT(sP("videoModule.videoPoster"),o,sP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=zp(s),p=zp(f),h=z6(XT(i,sP("videoModule.ok")),1)[0];if(null==this.$content){var g=zp("<div></div>");g.on("click","#"+i,function(n){return R6(t,0,void 0,function(){var t,i;return M6(this,function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,dte(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout(function(){d.focus()}),v[0]},e}(),gte=i3([].join),vte=f3!=Object,yte=function(){var e=[].join;return!!e&&q6(function(){e.call(null,",",1)})}();d8({target:"Array",proto:!0,forced:vte||!yte},{join:function(e){return gte(h3(this),void 0===e?",":e)}});var mte,bte,wte,Ete=!q6(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Dte=D5("IE_PROTO"),Cte=G6.Object,xte=Cte.prototype,Ste=Ete?Cte.getPrototypeOf:function(e){var t=z3(e);if(V3(t,Dte))return t[Dte];var n=t.constructor;return g3(n)&&t instanceof n?n.prototype:t instanceof Cte?xte:null},Ate=Z3("iterator"),Ote=!1;[].keys&&("next"in(wte=[].keys())?(bte=Ste(Ste(wte)))!==Object.prototype&&(mte=bte):Ote=!0);var kte=null==mte||q6(function(){var e={};return mte[Ate].call(e)!==e});kte&&(mte={}),g3(mte[Ate])||I5(mte,Ate,function(){return this});var Bte={IteratorPrototype:mte,BUGGY_SAFARI_ITERATORS:Ote},Fte=Bte.IteratorPrototype,Tte=function(){return this},_te=N5.PROPER,Pte=N5.CONFIGURABLE,jte=Bte.IteratorPrototype,Nte=Bte.BUGGY_SAFARI_ITERATORS,Ite=Z3("iterator"),Lte=function(){return this},Rte=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=V8(Fte,{next:e3(1,s)}),D9(u,l,!1),A9[l]=Tte;var c,f,d=function(e){if(e===o&&y)return y;if(!Nte&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[Ite]||g["@@iterator"]||o&&g[o],y=!Nte&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=Ste(m.call(new e)))!==Object.prototype&&c.next&&(Ste(c)!==jte&&(b9?b9(c,jte):g3(c[Ite])||I5(c,Ite,Lte)),D9(c,p,!0)),_te&&"values"==o&&v&&"values"!==v.name&&(Pte?p5(g,"name","values"):(h=!0,y=function(){return X6(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||d8({target:t,proto:!0,forced:Nte||h},f)),g[Ite]!==y&&I5(g,Ite,y,{name:o}),A9[t]=y,f},Mte=T5.set,zte=T5.getterFor("Array Iterator"),Hte=Rte(Array,"Array",function(e,t){Mte(this,{type:"Array Iterator",target:h3(e),index:0,kind:t})},function(){var e=zte(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");A9.Arguments=A9.Array,W8("keys"),W8("values"),W8("entries");var Vte=q7.charAt,$te=T5.set,Ute=T5.getterFor("String Iterator");Rte(String,"String",function(e){$te(this,{type:"String Iterator",string:w8(e),index:0})},function(){var e,t=Ute(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Vte(n,r),t.index+=e.length,{value:e,done:!1})});var Wte=function(e,t,n){var r=e5(t);r in e?d5.f(e,r,e3(0,n)):e[r]=n},Gte=G6.Array,qte=Math.max,Kte=Q5.f,Yte="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xte={f:function(e){return Yte&&"Window"==s3(e)?function(e){try{return Kte(e)}catch(t){return function(e){for(var t=W5(e),n=V5(void 0,t),r=V5(t,t),o=Gte(qte(r-n,0)),i=0;n<r;n++,i++)Wte(o,i,e[n]);return o.length=i,o}(Yte)}}(e):Kte(h3(e))}},Zte=q6(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Jte=Object.isExtensible,Qte=q6(function(){Jte(1)})||Zte?function(e){return!!v3(e)&&(!Zte||"ArrayBuffer"!=s3(e))&&(!Jte||Jte(e))}:Jte,ene=!q6(function(){return Object.isExtensible(Object.preventExtensions({}))}),tne=V6(function(e){var t=d5.f,n=!1,r=G3("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Q5.f,t=i3([].splice),o={};o[r]=1,e(o).length&&(Q5.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},d8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xte.f}))},fastKey:function(e,t){if(!v3(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!V3(e,r)){if(!Qte(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!V3(e,r)){if(!Qte(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ene&&n&&Qte(e)&&!V3(e,r)&&i(e),e}};C5[r]=!0}),nne=tne.getWeakData,rne=T5.set,one=T5.getterFor,ine=c7.find,ane=c7.findIndex,une=i3([].splice),sne=0,lne=function(e){return e.frozen||(e.frozen=new cne)},cne=function(){this.entries=[]},fne=function(e,t){return ine(e.entries,function(e){return e[0]===t})};cne.prototype={get:function(e){var t=fne(this,e);if(t)return t[1]},has:function(e){return!!fne(this,e)},set:function(e,t){var n=fne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=ane(this.entries,function(t){return t[0]===e});return~t&&une(this.entries,t,1),!!~t}};var dne,pne={getConstructor:function(e,t,n,r){var o=e(function(e,o){S9(e,i),rne(e,{type:t,id:sne++,frozen:void 0}),null!=o&&I9(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=one(t),u=function(e,t,n){var r=a(e),o=nne(l5(t),!0);return!0===o?lne(r).set(t,n):o[r.id]=n,e};return v9(i,{delete:function(e){var t=a(this);if(!v3(e))return!1;var n=nne(e);return!0===n?lne(t).delete(e):n&&V3(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!v3(e))return!1;var n=nne(e);return!0===n?lne(t).has(e):n&&V3(n,t.id)}}),v9(i,n?{get:function(e){var t=a(this);if(v3(e)){var n=nne(e);return!0===n?lne(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},hne=T5.enforce,gne=!G6.ActiveXObject&&"ActiveXObject"in G6,vne=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},yne=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=G6[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=i3(u[e]);I5(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!v3(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!v3(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!v3(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(c8(e,!g3(a)||!(o||u.forEach&&!q6(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),tne.enable();else if(c8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=q6(function(){f.has(1)}),h=W9(function(e){new a(e)}),g=!o&&q6(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){S9(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,b9&&g3(c=o.constructor)&&c!==l&&v3(f=c.prototype)&&f!==l.prototype&&b9(n,f),n);return null!=t&&I9(t,d[i],{that:d,AS_ENTRIES:r}),d})).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,d8({global:!0,forced:s!=a},l),D9(s,e),o||n.setStrong(s,e,r),s}("WeakMap",vne,pne);if(w5&&gne){dne=pne.getConstructor(vne,"WeakMap",!0),tne.enable();var mne=yne.prototype,bne=i3(mne.delete),wne=i3(mne.has),Ene=i3(mne.get),Dne=i3(mne.set);v9(mne,{delete:function(e){if(v3(e)&&!Qte(e)){var t=hne(this);return t.frozen||(t.frozen=new dne),bne(this,e)||t.frozen.delete(e)}return bne(this,e)},has:function(e){if(v3(e)&&!Qte(e)){var t=hne(this);return t.frozen||(t.frozen=new dne),wne(this,e)||t.frozen.has(e)}return wne(this,e)},get:function(e){if(v3(e)&&!Qte(e)){var t=hne(this);return t.frozen||(t.frozen=new dne),wne(this,e)?Ene(this,e):t.frozen.get(e)}return Ene(this,e)},set:function(e,t){if(v3(e)&&!Qte(e)){var n=hne(this);n.frozen||(n.frozen=new dne),wne(this,e)?Dne(this,e,t):n.frozen.set(e,t)}else Dne(this,e,t);return this}})}var Cne={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},xne=r5("span").classList,Sne=xne&&xne.constructor&&xne.constructor.prototype,Ane=Sne===Object.prototype?void 0:Sne,One=Z3("iterator"),kne=Z3("toStringTag"),Bne=Hte.values,Fne=function(e,t){if(e){if(e[One]!==Bne)try{p5(e,One,Bne)}catch(r){e[One]=Bne}if(e[kne]||p5(e,kne,t),Cne[t])for(var n in Hte)if(e[n]!==Hte[n])try{p5(e,n,Hte[n])}catch(r){e[n]=Hte[n]}}};for(var Tne in Cne)Fne(G6[Tne]&&G6[Tne].prototype,Tne);Fne(Ane,"DOMTokenList");var _ne=N5.EXISTS,Pne=d5.f,jne=Function.prototype,Nne=i3(jne.toString),Ine=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Lne=i3(Ine.exec);K6&&!_ne&&Pne(jne,"name",{configurable:!0,get:function(){try{return Lne(Ine,Nne(this))[1]}catch(De){return""}}});var Rne=Z3("species"),Mne=x3>=51||!q6(function(){var e=[];return(e.constructor={})[Rne]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),zne=Z3("species"),Hne=G6.Array,Vne=Math.max;function $ne(e){return e.getMenuConfig("uploadVideo")}d8({target:"Array",proto:!0,forced:!Mne},{slice:function(e,t){var n,r,o,i=h3(this),a=W5(i),u=V5(e,a),s=V5(void 0===t?a:t,a);if(X8(i)&&(n=i.constructor,(o7(n)&&(n===Hne||X8(n.prototype))||v3(n)&&null===(n=n[zne]))&&(n=void 0),n===Hne||void 0===n))return K9(i,u,s);for(r=new(void 0===n?Hne:n)(Vne(s-u,0)),o=0;u<s;u++,o++)u in i&&Wte(r,o,i[u]);return r.length=o,r}});var Une=new WeakMap;function Wne(e,t){return R6(this,0,void 0,function(){var n,r,o,i;return M6(this,function(a){switch(a.label){case 0:return n=function(e){var t=Une.get(e);if(null!=t)return t;var n=$ne(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=b_(L6(L6({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return dte(e,t,n)}),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;dte(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Une.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var Gne=function(){function e(){this.title=sP("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n){return dte(e,t,n)});else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=zp("body"),s=zp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",function(){var t=s[0].files;!function(e,t){var n,r;R6(this,0,void 0,function(){var o,i,a,u,s,l;return M6(this,function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=$ne(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then(function(e){i({value:e,done:u})},a)})}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,function(t,n){return dte(e,t,n)})]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Wne(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!td.isCollapsed(t)||!!FO.getSelectedElems(e).some(function(t){var n=FO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)})},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),qne=N5.PROPER,Kne=RegExp.prototype,Yne=Kne.toString,Xne=i3(m7),Zne=q6(function(){return"/a/b"!=Yne.call({source:"a",flags:"b"})}),Jne=qne&&"toString"!=Yne.name;function Qne(){return h9("w-e-insert-video")}(Zne||Jne)&&I5(RegExp.prototype,"toString",function(){var e=l5(this),t=w8(e.source),n=e.flags;return"/"+t+"/"+w8(void 0===n&&m3(Kne,e)&&!("flags"in Kne)?Xne(e):n)},{unsafe:!0});var ere=function(){function e(){this.title=sP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Qne(),this.heightInputId=Qne(),this.buttonId=Qne()}return e.prototype.getSelectedVideoNode=function(e){return FO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=z6(YT(sP("videoModule.width"),n,"auto"),2),a=i[0],u=zp(i[1]),s=z6(YT(sP("videoModule.height"),r,"auto"),2),l=s[0],c=zp(s[1]),f=z6(XT(o,sP("videoModule.ok")),1)[0];if(null==this.$content){var d=zp("<div></div>");d.on("click","#"+o,function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),Ad.setNodes(e,{width:s,height:l},{match:function(e){return FO.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout(function(){u.focus()}),p[0]},e}(),tre={renderElems:[_8],elemsToHtml:[P8],preParseHtml:[q8],parseElemsHtml:[y7],menus:[{key:"insertVideo",factory:function(){return new hte},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Gne},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new ere}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=z6(e,2),o=t[0],i=t[1];return"video"===FO.getNodeType(o)&&FO.isLastNode(r,o)&&Ad.insertNodes(r,FO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};uP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),uP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var nre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rre(e){var t={exports:{}};return e(t,t.exports),t.exports}var ore,ire,are=function(e){return e&&e.Math==Math&&e},ure=are("object"==typeof globalThis&&globalThis)||are("object"==typeof window&&window)||are("object"==typeof self&&self)||are("object"==typeof nre&&nre)||function(){return this}()||Function("return this")(),sre=function(e){try{return!!e()}catch(t){return!0}},lre=!sre(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),cre=Function.prototype.call,fre=cre.bind?cre.bind(cre):function(){return cre.apply(cre,arguments)},dre={}.propertyIsEnumerable,pre=Object.getOwnPropertyDescriptor,hre={f:pre&&!dre.call({1:2},1)?function(e){var t=pre(this,e);return!!t&&t.enumerable}:dre},gre=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vre=Function.prototype,yre=vre.bind,mre=vre.call,bre=yre&&yre.bind(mre),wre=yre?function(e){return e&&bre(mre,e)}:function(e){return e&&function(){return mre.apply(e,arguments)}},Ere=wre({}.toString),Dre=wre("".slice),Cre=function(e){return Dre(Ere(e),8,-1)},xre=ure.Object,Sre=wre("".split),Are=sre(function(){return!xre("z").propertyIsEnumerable(0)})?function(e){return"String"==Cre(e)?Sre(e,""):xre(e)}:xre,Ore=ure.TypeError,kre=function(e){if(null==e)throw Ore("Can't call method on "+e);return e},Bre=function(e){return Are(kre(e))},Fre=function(e){return"function"==typeof e},Tre=function(e){return"object"==typeof e?null!==e:Fre(e)},_re=function(e,t){return arguments.length<2?function(e){return Fre(e)?e:void 0}(ure[e]):ure[e]&&ure[e][t]},Pre=wre({}.isPrototypeOf),jre=_re("navigator","userAgent")||"",Nre=ure.process,Ire=ure.Deno,Lre=Nre&&Nre.versions||Ire&&Ire.version,Rre=Lre&&Lre.v8;Rre&&(ire=(ore=Rre.split("."))[0]>0&&ore[0]<4?1:+(ore[0]+ore[1])),!ire&&jre&&(!(ore=jre.match(/Edge\/(\d+)/))||ore[1]>=74)&&(ore=jre.match(/Chrome\/(\d+)/))&&(ire=+ore[1]);var Mre=ire,zre=!!Object.getOwnPropertySymbols&&!sre(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mre&&Mre<41}),Hre=zre&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Vre=ure.Object,$re=Hre?function(e){return"symbol"==typeof e}:function(e){var t=_re("Symbol");return Fre(t)&&Pre(t.prototype,Vre(e))},Ure=ure.String,Wre=function(e){try{return Ure(e)}catch(t){return"Object"}},Gre=ure.TypeError,qre=function(e){if(Fre(e))return e;throw Gre(Wre(e)+" is not a function")},Kre=function(e,t){var n=e[t];return null==n?void 0:qre(n)},Yre=ure.TypeError,Xre=Object.defineProperty,Zre=function(e,t){try{Xre(ure,e,{value:t,configurable:!0,writable:!0})}catch(cP){ure[e]=t}return t},Jre=ure["__core-js_shared__"]||Zre("__core-js_shared__",{}),Qre=rre(function(e){(e.exports=function(e,t){return Jre[e]||(Jre[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),eoe=ure.Object,toe=function(e){return eoe(kre(e))},noe=wre({}.hasOwnProperty),roe=Object.hasOwn||function(e,t){return noe(toe(e),t)},ooe=0,ioe=Math.random(),aoe=wre(1..toString),uoe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+aoe(++ooe+ioe,36)},soe=Qre("wks"),loe=ure.Symbol,coe=loe&&loe.for,foe=Hre?loe:loe&&loe.withoutSetter||uoe,doe=function(e){if(!roe(soe,e)||!zre&&"string"!=typeof soe[e]){var t="Symbol."+e;zre&&roe(loe,e)?soe[e]=loe[e]:soe[e]=Hre&&coe?coe(t):foe(t)}return soe[e]},poe=ure.TypeError,hoe=doe("toPrimitive"),goe=function(e){var t=function(e){if(!Tre(e)||$re(e))return e;var t,n=Kre(e,hoe);if(n){if(t=fre(n,e,"string"),!Tre(t)||$re(t))return t;throw poe("Can't convert object to primitive value")}return function(e){var t,n;if(Fre(t=e.toString)&&!Tre(n=fre(t,e)))return n;if(Fre(t=e.valueOf)&&!Tre(n=fre(t,e)))return n;throw Yre("Can't convert object to primitive value")}(e)}(e);return $re(t)?t:t+""},voe=ure.document,yoe=Tre(voe)&&Tre(voe.createElement),moe=function(e){return yoe?voe.createElement(e):{}},boe=!lre&&!sre(function(){return 7!=Object.defineProperty(moe("div"),"a",{get:function(){return 7}}).a}),woe=Object.getOwnPropertyDescriptor,Eoe={f:lre?woe:function(e,t){if(e=Bre(e),t=goe(t),boe)try{return woe(e,t)}catch(n){}if(roe(e,t))return gre(!fre(hre.f,e,t),e[t])}},Doe=ure.String,Coe=ure.TypeError,xoe=function(e){if(Tre(e))return e;throw Coe(Doe(e)+" is not an object")},Soe=ure.TypeError,Aoe=Object.defineProperty,Ooe={f:lre?Aoe:function(e,t,n){if(xoe(e),t=goe(t),xoe(n),boe)try{return Aoe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Soe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},koe=lre?function(e,t,n){return Ooe.f(e,t,gre(1,n))}:function(e,t,n){return e[t]=n,e},Boe=wre(Function.toString);Fre(Jre.inspectSource)||(Jre.inspectSource=function(e){return Boe(e)});var Foe,Toe,_oe,Poe=Jre.inspectSource,joe=ure.WeakMap,Noe=Fre(joe)&&/native code/.test(Poe(joe)),Ioe=Qre("keys"),Loe=function(e){return Ioe[e]||(Ioe[e]=uoe(e))},Roe={},Moe=ure.TypeError,zoe=ure.WeakMap;if(Noe||Jre.state){var Hoe=Jre.state||(Jre.state=new zoe),Voe=wre(Hoe.get),$oe=wre(Hoe.has),Uoe=wre(Hoe.set);Foe=function(e,t){if($oe(Hoe,e))throw new Moe("Object already initialized");return t.facade=e,Uoe(Hoe,e,t),t},Toe=function(e){return Voe(Hoe,e)||{}},_oe=function(e){return $oe(Hoe,e)}}else{var Woe=Loe("state");Roe[Woe]=!0,Foe=function(e,t){if(roe(e,Woe))throw new Moe("Object already initialized");return t.facade=e,koe(e,Woe,t),t},Toe=function(e){return roe(e,Woe)?e[Woe]:{}},_oe=function(e){return roe(e,Woe)}}var Goe={set:Foe,get:Toe,has:_oe,enforce:function(e){return _oe(e)?Toe(e):Foe(e,{})},getterFor:function(e){return function(t){var n;if(!Tre(t)||(n=Toe(t)).type!==e)throw Moe("Incompatible receiver, "+e+" required");return n}}},qoe=Function.prototype,Koe=lre&&Object.getOwnPropertyDescriptor,Yoe=roe(qoe,"name"),Xoe={EXISTS:Yoe,PROPER:Yoe&&"something"===function(){}.name,CONFIGURABLE:Yoe&&(!lre||lre&&Koe(qoe,"name").configurable)},Zoe=rre(function(e){var t=Xoe.CONFIGURABLE,n=Goe.get,r=Goe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Fre(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!roe(i,"name")||t&&i.name!==f)&&koe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ure?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:koe(e,n,i)):l?e[n]=i:Zre(n,i)})(Function.prototype,"toString",function(){return Fre(this)&&n(this).source||Poe(this)})}),Joe=Math.ceil,Qoe=Math.floor,eie=function(e){var t=+e;return t!=t||0===t?0:(t>0?Qoe:Joe)(t)},tie=Math.max,nie=Math.min,rie=function(e,t){var n=eie(e);return n<0?tie(n+t,0):nie(n,t)},oie=Math.min,iie=function(e){return e>0?oie(eie(e),9007199254740991):0},aie=function(e){return iie(e.length)},uie=function(e){return function(t,n,r){var o,i=Bre(t),a=aie(i),u=rie(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),sie=wre([].push),lie=function(e,t){var n,r=Bre(e),o=0,i=[];for(n in r)!roe(Roe,n)&&roe(r,n)&&sie(i,n);for(;t.length>o;)roe(r,n=t[o++])&&(~uie(i,n)||sie(i,n));return i},cie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fie=cie.concat("length","prototype"),die={f:Object.getOwnPropertyNames||function(e){return lie(e,fie)}},pie={f:Object.getOwnPropertySymbols},hie=wre([].concat),gie=_re("Reflect","ownKeys")||function(e){var t=die.f(xoe(e)),n=pie.f;return n?hie(t,n(e)):t},vie=function(e,t){for(var n=gie(t),r=Ooe.f,o=Eoe.f,i=0;i<n.length;i++){var a=n[i];roe(e,a)||r(e,a,o(t,a))}},yie=/#|\.prototype\./,mie=function(e,t){var n=wie[bie(e)];return n==Die||n!=Eie&&(Fre(t)?sre(t):!!t)},bie=mie.normalize=function(e){return String(e).replace(yie,".").toLowerCase()},wie=mie.data={},Eie=mie.NATIVE="N",Die=mie.POLYFILL="P",Cie=mie,xie=Eoe.f,Sie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ure:l?ure[u]||Zre(u,{}):(ure[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=xie(n,r))&&a.value:n[r],!Cie(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;vie(i,o)}(e.sham||o&&o.sham)&&koe(i,"sham",!0),Zoe(n,r,i,e)}},Aie=Array.isArray||function(e){return"Array"==Cre(e)},Oie={};Oie[doe("toStringTag")]="z";var kie="[object z]"===String(Oie),Bie=doe("toStringTag"),Fie=ure.Object,Tie="Arguments"==Cre(function(){return arguments}()),_ie=kie?Cre:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Fie(e),Bie))?n:Tie?Cre(t):"Object"==(r=Cre(t))&&Fre(t.callee)?"Arguments":r},Pie=function(){},jie=[],Nie=_re("Reflect","construct"),Iie=/^\s*(?:class|function)\b/,Lie=wre(Iie.exec),Rie=!Iie.exec(Pie),Mie=function(e){if(!Fre(e))return!1;try{return Nie(Pie,jie,e),!0}catch(t){return!1}},zie=!Nie||sre(function(){var e;return Mie(Mie.call)||!Mie(Object)||!Mie(function(){e=!0})||e})?function(e){if(!Fre(e))return!1;switch(_ie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rie||!!Lie(Iie,Poe(e))}:Mie,Hie=function(e,t,n){var r=goe(t);r in e?Ooe.f(e,r,gre(0,n)):e[r]=n},Vie=doe("species"),$ie=wre([].slice),Uie=Mre>=51||!sre(function(){var e=[];return(e.constructor={})[Vie]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),Wie=doe("species"),Gie=ure.Array,qie=Math.max;Sie({target:"Array",proto:!0,forced:!Uie},{slice:function(e,t){var n,r,o,i=Bre(this),a=aie(i),u=rie(e,a),s=rie(void 0===t?a:t,a);if(Aie(i)&&(n=i.constructor,(zie(n)&&(n===Gie||Aie(n.prototype))||Tre(n)&&null===(n=n[Wie]))&&(n=void 0),n===Gie||void 0===n))return $ie(i,u,s);for(r=new(void 0===n?Gie:n)(qie(s-u,0)),o=0;u<s;u++,o++)u in i&&Hie(r,o,i[u]);return r.length=o,r}});var Kie=kie?{}.toString:function(){return"[object "+_ie(this)+"]"};kie||Zoe(Object.prototype,"toString",Kie,{unsafe:!0});var Yie,Xie=ure.String,Zie=function(e){if("Symbol"===_ie(e))throw TypeError("Cannot convert a Symbol value to a string");return Xie(e)},Jie=function(){var e=xoe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Qie=ure.RegExp,eae=sre(function(){var e=Qie("a","y");return e.lastIndex=2,null!=e.exec("abcd")});eae||sre(function(){return!Qie("a","y").sticky});var tae={BROKEN_CARET:eae||sre(function(){var e=Qie("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:eae},nae=Object.keys||function(e){return lie(e,cie)},rae=lre?Object.defineProperties:function(e,t){xoe(e);for(var n,r=Bre(t),o=nae(t),i=o.length,a=0;i>a;)Ooe.f(e,n=o[a++],r[n]);return e},oae=_re("document","documentElement"),iae=Loe("IE_PROTO"),aae=function(){},uae=function(e){return"<script>"+e+"<\/script>"},sae=function(e){e.write(uae("")),e.close();var t=e.parentWindow.Object;return e=null,t},lae=function(){try{Yie=new ActiveXObject("htmlfile")}catch(r){}var e,t;lae="undefined"!=typeof document?document.domain&&Yie?sae(Yie):((t=moe("iframe")).style.display="none",oae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(uae("document.F=Object")),e.close(),e.F):sae(Yie);for(var n=cie.length;n--;)delete lae.prototype[cie[n]];return lae()};Roe[iae]=!0;var cae,fae,dae=Object.create||function(e,t){var n;return null!==e?(aae.prototype=xoe(e),n=new aae,aae.prototype=null,n[iae]=e):n=lae(),void 0===t?n:rae(n,t)},pae=ure.RegExp,hae=sre(function(){var e=pae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),gae=ure.RegExp,vae=sre(function(){var e=gae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),yae=Goe.get,mae=Qre("native-string-replace",String.prototype.replace),bae=RegExp.prototype.exec,wae=bae,Eae=wre("".charAt),Dae=wre("".indexOf),Cae=wre("".replace),xae=wre("".slice),Sae=(fae=/b*/g,fre(bae,cae=/a/,"a"),fre(bae,fae,"a"),0!==cae.lastIndex||0!==fae.lastIndex),Aae=tae.BROKEN_CARET,Oae=void 0!==/()??/.exec("")[1];(Sae||Oae||Aae||hae||vae)&&(wae=function(e){var t,n,r,o,i,a,u,s=this,l=yae(s),c=Zie(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=fre(wae,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Aae&&s.sticky,h=fre(Jie,s),g=s.source,v=0,y=c;if(p&&(h=Cae(h,"y",""),-1===Dae(h,"g")&&(h+="g"),y=xae(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Eae(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Oae&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Sae&&(r=s.lastIndex),o=fre(bae,p?n:s,y),p?o?(o.input=xae(o.input,v),o[0]=xae(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Sae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Oae&&o&&o.length>1&&fre(mae,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=dae(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var kae=wae;Sie({target:"RegExp",proto:!0,forced:/./.exec!==kae},{exec:kae});var Bae=Function.prototype,Fae=Bae.apply,Tae=Bae.bind,_ae=Bae.call,Pae="object"==typeof Reflect&&Reflect.apply||(Tae?_ae.bind(Fae):function(){return _ae.apply(Fae,arguments)}),jae=doe("species"),Nae=RegExp.prototype,Iae=doe("match"),Lae=ure.TypeError,Rae=doe("species"),Mae=function(e,t){var n,r=xoe(e).constructor;return void 0===r||null==(n=xoe(r)[Rae])?t:function(e){if(zie(e))return e;throw Lae(Wre(e)+" is not a constructor")}(n)},zae=wre("".charAt),Hae=wre("".charCodeAt),Vae=wre("".slice),$ae={charAt:function(e){return function(t,n){var r,o,i=Zie(kre(t)),a=eie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Hae(i,a))<55296||r>56319||a+1===u||(o=Hae(i,a+1))<56320||o>57343?e?zae(i,a):r:e?Vae(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Uae=$ae.charAt,Wae=function(e,t,n){return t+(n?Uae(e,t).length:1)},Gae=ure.Array,qae=Math.max,Kae=function(e,t,n){for(var r=aie(e),o=rie(t,r),i=rie(void 0===n?r:n,r),a=Gae(qae(i-o,0)),u=0;o<i;o++,u++)Hie(a,u,e[o]);return a.length=u,a},Yae=ure.TypeError,Xae=function(e,t){var n=e.exec;if(Fre(n)){var r=fre(n,e,t);return null!==r&&xoe(r),r}if("RegExp"===Cre(e))return fre(kae,e,t);throw Yae("RegExp#exec called on incompatible receiver")},Zae=tae.UNSUPPORTED_Y,Jae=Math.min,Qae=[].push,eue=wre(/./.exec),tue=wre(Qae),nue=wre("".slice);!function(e,t,n,r){var o,i,a,u=doe(e),s=!sre(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)}),l=s&&!sre(function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[jae]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e});if(!s||!l||n){var c=wre(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=Zie(kre(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Tre(n=e)||!(void 0!==(r=n[Iae])?r:"RegExp"==Cre(n)))return fre(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=fre(kae,p,o))&&!((s=p.lastIndex)>d&&(tue(c,nue(o,d,u.index)),u.length>1&&u.index<o.length&&Pae(Qae,c,Kae(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&eue(p,"")||tue(c,""):tue(c,nue(o,d)),c.length>a?Kae(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:fre(i,this,e,t)}:i,[function(e,t){var n=kre(this),r=null==e?void 0:Kre(e,o);return r?fre(r,e,n,t):fre(a,Zie(n),e,t)},function(e,t){var n=xoe(this),r=Zie(e),o=function(e,t,n,r,o){var i=wre(e),a=t.exec;return a===kae||a===Nae.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u=Mae(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Zae?"g":"y"),d=new u(Zae?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===Xae(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=Zae?0:g;var y,m=Xae(d,Zae?nue(r,g):r);if(null===m||(y=Jae(iie(d.lastIndex+(Zae?g:0)),r.length))===h)g=Wae(r,g,l);else{if(tue(v,nue(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(tue(v,m[b]),v.length===p)return v;g=h=y}}return tue(v,nue(r,h)),v}]);Zoe(String.prototype,e,f[0]),Zoe(Nae,u,f[1])}r&&koe(Nae[u],"sham",!0)}("split",0,!!sre(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Zae);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var rue=function(){return rue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rue.apply(this,arguments)};function oue(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}u((r=r.apply(e,[])).next())})}function iue(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var aue=doe("unscopables"),uue=Array.prototype;null==uue[aue]&&Ooe.f(uue,aue,{configurable:!0,value:dae(null)});var sue,lue,cue,fue=function(e){uue[aue][e]=!0},due={},pue=!sre(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hue=Loe("IE_PROTO"),gue=ure.Object,vue=gue.prototype,yue=pue?gue.getPrototypeOf:function(e){var t=toe(e);if(roe(t,hue))return t[hue];var n=t.constructor;return Fre(n)&&t instanceof n?n.prototype:t instanceof gue?vue:null},mue=doe("iterator"),bue=!1;[].keys&&("next"in(cue=[].keys())?(lue=yue(yue(cue)))!==Object.prototype&&(sue=lue):bue=!0);var wue=null==sue||sre(function(){var e={};return sue[mue].call(e)!==e});wue&&(sue={}),Fre(sue[mue])||Zoe(sue,mue,function(){return this});var Eue={IteratorPrototype:sue,BUGGY_SAFARI_ITERATORS:bue},Due=Ooe.f,Cue=doe("toStringTag"),xue=function(e,t,n){e&&!roe(e=n?e:e.prototype,Cue)&&Due(e,Cue,{configurable:!0,value:t})},Sue=Eue.IteratorPrototype,Aue=function(){return this},Oue=ure.String,kue=ure.TypeError,Bue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=wre(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return xoe(n),function(e){if("object"==typeof e||Fre(e))return e;throw kue("Can't set "+Oue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Fue=Xoe.PROPER,Tue=Xoe.CONFIGURABLE,_ue=Eue.IteratorPrototype,Pue=Eue.BUGGY_SAFARI_ITERATORS,jue=doe("iterator"),Nue=function(){return this},Iue=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=dae(Sue,{next:gre(1,s)}),xue(u,l,!1),due[l]=Aue;var c,f,d=function(e){if(e===o&&y)return y;if(!Pue&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[jue]||g["@@iterator"]||o&&g[o],y=!Pue&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=yue(m.call(new e)))!==Object.prototype&&c.next&&(yue(c)!==_ue&&(Bue?Bue(c,_ue):Fre(c[jue])||Zoe(c,jue,Nue)),xue(c,p,!0)),Fue&&"values"==o&&v&&"values"!==v.name&&(Tue?koe(g,"name","values"):(h=!0,y=function(){return fre(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||Sie({target:t,proto:!0,forced:Pue||h},f)),g[jue]!==y&&Zoe(g,jue,y,{name:o}),due[t]=y,f},Lue=Goe.set,Rue=Goe.getterFor("Array Iterator"),Mue=Iue(Array,"Array",function(e,t){Lue(this,{type:"Array Iterator",target:Bre(e),index:0,kind:t})},function(){var e=Rue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");due.Arguments=due.Array,fue("keys"),fue("values"),fue("entries");var zue=$ae.charAt,Hue=Goe.set,Vue=Goe.getterFor("String Iterator");Iue(String,"String",function(e){Hue(this,{type:"String Iterator",string:Zie(e),index:0})},function(){var e,t=Vue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=zue(n,r),t.index+=e.length,{value:e,done:!1})});var $ue=function(e,t,n){for(var r in t)Zoe(e,r,t[r],n);return e},Uue=die.f,Wue="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gue={f:function(e){return Wue&&"Window"==Cre(e)?function(e){try{return Uue(e)}catch(t){return Kae(Wue)}}(e):Uue(Bre(e))}},que=sre(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Kue=Object.isExtensible,Yue=sre(function(){Kue(1)})||que?function(e){return!!Tre(e)&&(!que||"ArrayBuffer"!=Cre(e))&&(!Kue||Kue(e))}:Kue,Xue=!sre(function(){return Object.isExtensible(Object.preventExtensions({}))}),Zue=rre(function(e){var t=Ooe.f,n=!1,r=uoe("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=die.f,t=wre([].splice),o={};o[r]=1,e(o).length&&(die.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Sie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Gue.f}))},fastKey:function(e,t){if(!Tre(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!roe(e,r)){if(!Yue(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!roe(e,r)){if(!Yue(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Xue&&n&&Yue(e)&&!roe(e,r)&&i(e),e}};Roe[r]=!0}),Jue=wre(wre.bind),Que=function(e,t){return qre(e),void 0===t?e:Jue?Jue(e,t):function(){return e.apply(t,arguments)}},ese=doe("iterator"),tse=Array.prototype,nse=doe("iterator"),rse=function(e){if(null!=e)return Kre(e,nse)||Kre(e,"@@iterator")||due[_ie(e)]},ose=ure.TypeError,ise=function(e,t,n){var r,o;xoe(e);try{if(!(r=Kre(e,"return"))){if("throw"===t)throw n;return n}r=fre(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return xoe(r),n},ase=ure.TypeError,use=function(e,t){this.stopped=e,this.result=t},sse=use.prototype,lse=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Que(t,f),v=function(e){return r&&ise(r,"normal",e),new use(!0,e)},y=function(e){return d?(xoe(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=rse(e)))throw ase(Wre(e)+" is not iterable");if(void 0!==(c=o)&&(due.Array===c||tse[ese]===c)){for(i=0,a=aie(e);a>i;i++)if((u=y(e[i]))&&Pre(sse,u))return u;return new use(!1)}r=function(e,t){var n=arguments.length<2?rse(e):t;if(qre(n))return xoe(fre(n,e));throw ose(Wre(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=fre(s,r)).done;){try{u=y(l.value)}catch(m){ise(r,"throw",m)}if("object"==typeof u&&u&&Pre(sse,u))return u}return new use(!1)},cse=ure.TypeError,fse=function(e,t){if(Pre(t,e))return e;throw cse("Incorrect invocation")},dse=doe("iterator"),pse=!1;try{var hse=0,gse={next:function(){return{done:!!hse++}},return:function(){pse=!0}};gse[dse]=function(){return this},Array.from(gse,function(){throw 2})}catch(Yge){}var vse=function(e,t){if(!pse)return!1;var n=!1;try{var r={};r[dse]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},yse=doe("species"),mse=ure.Array,bse=function(e,t){return new(Aie(n=e)&&(r=n.constructor,(zie(r)&&(r===mse||Aie(r.prototype))||Tre(r)&&null===(r=r[yse]))&&(r=void 0)),void 0===r?mse:r)(0===t?0:t);var n,r},wse=wre([].push),Ese=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=toe(s),g=Are(h),v=Que(l,c),y=aie(g),m=0,b=f||bse,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:wse(w,d)}else switch(e){case 4:return!1;case 7:wse(w,d)}return i?-1:r||o?o:w}},Dse={forEach:Ese(0),find:Ese(5),findIndex:Ese(6)},Cse=Zue.getWeakData,xse=Goe.set,Sse=Goe.getterFor,Ase=Dse.find,Ose=Dse.findIndex,kse=wre([].splice),Bse=0,Fse=function(e){return e.frozen||(e.frozen=new Tse)},Tse=function(){this.entries=[]},_se=function(e,t){return Ase(e.entries,function(e){return e[0]===t})};Tse.prototype={get:function(e){var t=_se(this,e);if(t)return t[1]},has:function(e){return!!_se(this,e)},set:function(e,t){var n=_se(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ose(this.entries,function(t){return t[0]===e});return~t&&kse(this.entries,t,1),!!~t}};var Pse,jse={getConstructor:function(e,t,n,r){var o=e(function(e,o){fse(e,i),xse(e,{type:t,id:Bse++,frozen:void 0}),null!=o&&lse(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=Sse(t),u=function(e,t,n){var r=a(e),o=Cse(xoe(t),!0);return!0===o?Fse(r).set(t,n):o[r.id]=n,e};return $ue(i,{delete:function(e){var t=a(this);if(!Tre(e))return!1;var n=Cse(e);return!0===n?Fse(t).delete(e):n&&roe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Tre(e))return!1;var n=Cse(e);return!0===n?Fse(t).has(e):n&&roe(n,t.id)}}),$ue(i,n?{get:function(e){var t=a(this);if(Tre(e)){var n=Cse(e);return!0===n?Fse(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Nse=Goe.enforce,Ise=!ure.ActiveXObject&&"ActiveXObject"in ure,Lse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Rse=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=ure[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=wre(u[e]);Zoe(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Tre(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Tre(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Tre(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Cie(e,!Fre(a)||!(o||u.forEach&&!sre(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),Zue.enable();else if(Cie(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=sre(function(){f.has(1)}),h=vse(function(e){new a(e)}),g=!o&&sre(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){fse(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Bue&&Fre(c=o.constructor)&&c!==l&&Tre(f=c.prototype)&&f!==l.prototype&&Bue(n,f),n);return null!=t&&lse(t,d[i],{that:d,AS_ENTRIES:r}),d})).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Sie({global:!0,forced:s!=a},l),xue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Lse,jse);if(Noe&&Ise){Pse=jse.getConstructor(Lse,"WeakMap",!0),Zue.enable();var Mse=Rse.prototype,zse=wre(Mse.delete),Hse=wre(Mse.has),Vse=wre(Mse.get),$se=wre(Mse.set);$ue(Mse,{delete:function(e){if(Tre(e)&&!Yue(e)){var t=Nse(this);return t.frozen||(t.frozen=new Pse),zse(this,e)||t.frozen.delete(e)}return zse(this,e)},has:function(e){if(Tre(e)&&!Yue(e)){var t=Nse(this);return t.frozen||(t.frozen=new Pse),Hse(this,e)||t.frozen.has(e)}return Hse(this,e)},get:function(e){if(Tre(e)&&!Yue(e)){var t=Nse(this);return t.frozen||(t.frozen=new Pse),Hse(this,e)?Vse(this,e):t.frozen.get(e)}return Vse(this,e)},set:function(e,t){if(Tre(e)&&!Yue(e)){var n=Nse(this);n.frozen||(n.frozen=new Pse),Hse(this,e)?$se(this,e,t):n.frozen.set(e,t)}else $se(this,e,t);return this}})}var Use={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Wse=moe("span").classList,Gse=Wse&&Wse.constructor&&Wse.constructor.prototype,qse=Gse===Object.prototype?void 0:Gse,Kse=doe("iterator"),Yse=doe("toStringTag"),Xse=Mue.values,Zse=function(e,t){if(e){if(e[Kse]!==Xse)try{koe(e,Kse,Xse)}catch(r){e[Kse]=Xse}if(e[Yse]||koe(e,Yse,t),Use[t])for(var n in Mue)if(e[n]!==Mue[n])try{koe(e,n,Mue[n])}catch(r){e[n]=Mue[n]}}};for(var Jse in Use)Zse(ure[Jse]&&ure[Jse].prototype,Jse);Zse(qse,"DOMTokenList");var Qse=function(e,t){var n=[][e];return!!n&&sre(function(){n.call(null,t||function(){throw 1},1)})},ele=Dse.forEach,tle=Qse("forEach")?[].forEach:function(e){return ele(this,e,arguments.length>1?arguments[1]:void 0)},nle=function(e){if(e&&e.forEach!==tle)try{koe(e,"forEach",tle)}catch(t){e.forEach=tle}};for(var rle in Use)Use[rle]&&nle(ure[rle]&&ure[rle].prototype);nle(qse);var ole,ile,ale,ule,sle=ure.Promise,lle=doe("species"),cle=/(?:ipad|iphone|ipod).*applewebkit/i.test(jre),fle="process"==Cre(ure.process),dle=ure.setImmediate,ple=ure.clearImmediate,hle=ure.process,gle=ure.Dispatch,vle=ure.Function,yle=ure.MessageChannel,mle=ure.String,ble=0,wle={};try{ole=ure.location}catch(Yge){}var Ele=function(e){if(roe(wle,e)){var t=wle[e];delete wle[e],t()}},Dle=function(e){return function(){Ele(e)}},Cle=function(e){Ele(e.data)},xle=function(e){ure.postMessage(mle(e),ole.protocol+"//"+ole.host)};dle&&ple||(dle=function(e){var t=$ie(arguments,1);return wle[++ble]=function(){Pae(Fre(e)?e:vle(e),void 0,t)},ile(ble),ble},ple=function(e){delete wle[e]},fle?ile=function(e){hle.nextTick(Dle(e))}:gle&&gle.now?ile=function(e){gle.now(Dle(e))}:yle&&!cle?(ule=(ale=new yle).port2,ale.port1.onmessage=Cle,ile=Que(ule.postMessage,ule)):ure.addEventListener&&Fre(ure.postMessage)&&!ure.importScripts&&ole&&"file:"!==ole.protocol&&!sre(xle)?(ile=xle,ure.addEventListener("message",Cle,!1)):ile="onreadystatechange"in moe("script")?function(e){oae.appendChild(moe("script")).onreadystatechange=function(){oae.removeChild(this),Ele(e)}}:function(e){setTimeout(Dle(e),0)});var Sle,Ale,Ole,kle,Ble,Fle,Tle,_le,Ple={set:dle},jle=/ipad|iphone|ipod/i.test(jre)&&void 0!==ure.Pebble,Nle=/web0s(?!.*chrome)/i.test(jre),Ile=Eoe.f,Lle=Ple.set,Rle=ure.MutationObserver||ure.WebKitMutationObserver,Mle=ure.document,zle=ure.process,Hle=ure.Promise,Vle=Ile(ure,"queueMicrotask"),$le=Vle&&Vle.value;$le||(Sle=function(){var e,t;for(fle&&(e=zle.domain)&&e.exit();Ale;){t=Ale.fn,Ale=Ale.next;try{t()}catch(n){throw Ale?kle():Ole=void 0,n}}Ole=void 0,e&&e.enter()},cle||fle||Nle||!Rle||!Mle?!jle&&Hle&&Hle.resolve?((Tle=Hle.resolve(void 0)).constructor=Hle,_le=Que(Tle.then,Tle),kle=function(){_le(Sle)}):fle?kle=function(){zle.nextTick(Sle)}:(Lle=Que(Lle,ure),kle=function(){Lle(Sle)}):(Ble=!0,Fle=Mle.createTextNode(""),new Rle(Sle).observe(Fle,{characterData:!0}),kle=function(){Fle.data=Ble=!Ble}));var Ule,Wle,Gle,qle,Kle=$le||function(e){var t={fn:e,next:void 0};Ole&&(Ole.next=t),Ale||(Ale=t,kle()),Ole=t},Yle=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=qre(t),this.reject=qre(n)},Xle={f:function(e){return new Yle(e)}},Zle=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Jle="object"==typeof window,Qle=Ple.set,ece=doe("species"),tce="Promise",nce=Goe.getterFor(tce),rce=Goe.set,oce=Goe.getterFor(tce),ice=sle&&sle.prototype,ace=sle,uce=ice,sce=ure.TypeError,lce=ure.document,cce=ure.process,fce=Xle.f,dce=fce,pce=!!(lce&&lce.createEvent&&ure.dispatchEvent),hce=Fre(ure.PromiseRejectionEvent),gce=!1,vce=Cie(tce,function(){var e=Poe(ace),t=e!==String(ace);if(!t&&66===Mre)return!0;if(Mre>=51&&/native code/.test(e))return!1;var n=new ace(function(e){e(1)}),r=function(e){e(function(){},function(){})};return(n.constructor={})[ece]=r,!(gce=n.then(function(){})instanceof r)||!t&&Jle&&!hce}),yce=vce||!vse(function(e){ace.all(e).catch(function(){})}),mce=function(e){var t;return!(!Tre(e)||!Fre(t=e.then))&&t},bce=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Kle(function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Cce(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(sce("Promise-chain cycle")):(u=mce(a))?fre(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ece(e)})}},wce=function(e,t,n){var r,o;pce?((r=lce.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ure.dispatchEvent(r)):r={promise:t,reason:n},!hce&&(o=ure["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=ure.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ece=function(e){fre(Qle,ure,function(){var t,n=e.facade,r=e.value;if(Dce(e)&&(t=Zle(function(){fle?cce.emit("unhandledRejection",r,n):wce("unhandledrejection",n,r)}),e.rejection=fle||Dce(e)?2:1,t.error))throw t.value})},Dce=function(e){return 1!==e.rejection&&!e.parent},Cce=function(e){fre(Qle,ure,function(){var t=e.facade;fle?cce.emit("rejectionHandled",t):wce("rejectionhandled",t,e.value)})},xce=function(e,t,n){return function(r){e(t,r,n)}},Sce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,bce(e,!0))},Ace=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw sce("Promise can't be resolved itself");var r=mce(t);r?Kle(function(){var n={done:!1};try{fre(r,t,xce(Ace,n,e),xce(Sce,n,e))}catch(o){Sce(n,o,e)}}):(e.value=t,e.state=1,bce(e,!1))}catch(o){Sce({done:!1},o,e)}}};if(vce&&(uce=(ace=function(e){fse(this,uce),qre(e),fre(Ule,this);var t=nce(this);try{e(xce(Ace,t),xce(Sce,t))}catch(n){Sce(t,n)}}).prototype,(Ule=function(e){rce(this,{type:tce,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=$ue(uce,{then:function(e,t){var n=oce(this),r=n.reactions,o=fce(Mae(this,ace));return o.ok=!Fre(e)||e,o.fail=Fre(t)&&t,o.domain=fle?cce.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&bce(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Wle=function(){var e=new Ule,t=nce(e);this.promise=e,this.resolve=xce(Ace,t),this.reject=xce(Sce,t)},Xle.f=fce=function(e){return e===ace||e===Gle?new Wle(e):dce(e)},Fre(sle)&&ice!==Object.prototype)){qle=ice.then,gce||(Zoe(ice,"then",function(e,t){var n=this;return new ace(function(e,t){fre(qle,n,e,t)}).then(e,t)},{unsafe:!0}),Zoe(ice,"catch",uce.catch,{unsafe:!0}));try{delete ice.constructor}catch(Yge){}Bue&&Bue(ice,uce)}Sie({global:!0,wrap:!0,forced:vce},{Promise:ace}),xue(ace,tce,!1),function(){var e=_re("Promise"),t=Ooe.f;lre&&e&&!e[lle]&&t(e,lle,{configurable:!0,get:function(){return this}})}(),Gle=_re(tce),Sie({target:tce,stat:!0,forced:vce},{reject:function(e){var t=fce(this);return fre(t.reject,void 0,e),t.promise}}),Sie({target:tce,stat:!0,forced:vce},{resolve:function(e){return function(e,t){if(xoe(e),Tre(t)&&t.constructor===e)return t;var n=Xle.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Sie({target:tce,stat:!0,forced:yce},{all:function(e){var t=this,n=fce(t),r=n.resolve,o=n.reject,i=Zle(function(){var n=qre(t.resolve),i=[],a=0,u=1;lse(e,function(e){var s=a++,l=!1;u++,fre(n,t,e).then(function(e){l||(l=!0,i[s]=e,--u||r(i))},o)}),--u||r(i)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=fce(t),r=n.reject,o=Zle(function(){var o=qre(t.resolve);lse(e,function(e){fre(o,t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Oce=Xoe.PROPER,kce=RegExp.prototype,Bce=kce.toString,Fce=wre(Jie),Tce=sre(function(){return"/a/b"!=Bce.call({source:"a",flags:"b"})}),_ce=Oce&&"toString"!=Bce.name;(Tce||_ce)&&Zoe(RegExp.prototype,"toString",function(){var e=xoe(this),t=Zie(e.source),n=e.flags;return"/"+t+"/"+Zie(void 0===n&&Pre(kce,e)&&!("flags"in kce)?Fce(e):n)},{unsafe:!0});var Pce=Xoe.EXISTS,jce=Ooe.f,Nce=Function.prototype,Ice=wre(Nce.toString),Lce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rce=wre(Lce.exec);lre&&!Pce&&jce(Nce,"name",{configurable:!0,get:function(){try{return Rce(Lce,Ice(this))[1]}catch(De){return""}}});var Mce=new WeakMap;function zce(e){return e.getMenuConfig("uploadImage")}function Hce(e,t){return oue(this,0,void 0,function(){return iue(this,function(n){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;Lz(e,i,t.name,a),n("ok")}}})]})})}function Vce(e,t){return oue(this,0,void 0,function(){var n,r,o,i;return iue(this,function(a){switch(a.label){case 0:return n=function(e){var t=Mce.get(e);if(null!=t)return t;var n=zce(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=b_(rue(rue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return Lz(e,t,n,r)}),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach(function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;Lz(e,r,i,void 0===a?"":a)});else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;Lz(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Mce.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function $ce(e,t){var n,r;return oue(this,0,void 0,function(){var o,i,a,u,s,l,c,f,d;return iue(this,function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=zce(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then(function(e){i({value:e,done:u})},a)})}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Hce(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(t,n,r){return Lz(e,t,n,r)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Vce(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var Uce=wre([].join),Wce=Are!=Object,Gce=Qse("join",",");Sie({target:"Array",proto:!0,forced:Wce||!Gce},{join:function(e){return Uce(Bre(this),void 0===e?",":e)}}),uh&&(zp.fn.append=uh),Kp&&(zp.fn.on=Kp),ph&&(zp.fn.remove=ph),qp&&(zp.fn.val=qp),yh&&(zp.fn.click=yh),Qp&&(zp.fn.hide=Qp);var qce=function(){function e(){this.title=sP("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Rz(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n,r){return Lz(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=zp("body"),s=zp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",function(){var t=s[0].files;$ce(e,t)})}},e}(),Kce={menus:[{key:"uploadImage",factory:function(){return new qce},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Rz(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some(function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]})?$ce(e,o):t(r)}},n}};uP("en",{highLightModule:{selectLang:"Language"}}),uP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Yce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Xce(e){var t={exports:{}};return e(t,t.exports),t.exports}var Zce,Jce,Qce=function(e){return e&&e.Math==Math&&e},efe=Qce("object"==typeof globalThis&&globalThis)||Qce("object"==typeof window&&window)||Qce("object"==typeof self&&self)||Qce("object"==typeof Yce&&Yce)||function(){return this}()||Function("return this")(),tfe=Object.defineProperty,nfe=function(e,t){try{tfe(efe,e,{value:t,configurable:!0,writable:!0})}catch(cP){efe[e]=t}return t},rfe=efe["__core-js_shared__"]||nfe("__core-js_shared__",{}),ofe=Xce(function(e){(e.exports=function(e,t){return rfe[e]||(rfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ife=Function.prototype,afe=ife.bind,ufe=ife.call,sfe=afe&&afe.bind(ufe),lfe=afe?function(e){return e&&sfe(ufe,e)}:function(e){return e&&function(){return ufe.apply(e,arguments)}},cfe=efe.TypeError,ffe=function(e){if(null==e)throw cfe("Can't call method on "+e);return e},dfe=efe.Object,pfe=function(e){return dfe(ffe(e))},hfe=lfe({}.hasOwnProperty),gfe=Object.hasOwn||function(e,t){return hfe(pfe(e),t)},vfe=0,yfe=Math.random(),mfe=lfe(1..toString),bfe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+mfe(++vfe+yfe,36)},wfe=function(e){return"function"==typeof e},Efe=function(e,t){return arguments.length<2?function(e){return wfe(e)?e:void 0}(efe[e]):efe[e]&&efe[e][t]},Dfe=Efe("navigator","userAgent")||"",Cfe=efe.process,xfe=efe.Deno,Sfe=Cfe&&Cfe.versions||xfe&&xfe.version,Afe=Sfe&&Sfe.v8;Afe&&(Jce=(Zce=Afe.split("."))[0]>0&&Zce[0]<4?1:+(Zce[0]+Zce[1])),!Jce&&Dfe&&(!(Zce=Dfe.match(/Edge\/(\d+)/))||Zce[1]>=74)&&(Zce=Dfe.match(/Chrome\/(\d+)/))&&(Jce=+Zce[1]);var Ofe=Jce,kfe=function(e){try{return!!e()}catch(t){return!0}},Bfe=!!Object.getOwnPropertySymbols&&!kfe(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ofe&&Ofe<41}),Ffe=Bfe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tfe=ofe("wks"),_fe=efe.Symbol,Pfe=_fe&&_fe.for,jfe=Ffe?_fe:_fe&&_fe.withoutSetter||bfe,Nfe=function(e){if(!gfe(Tfe,e)||!Bfe&&"string"!=typeof Tfe[e]){var t="Symbol."+e;Bfe&&gfe(_fe,e)?Tfe[e]=_fe[e]:Tfe[e]=Ffe&&Pfe?Pfe(t):jfe(t)}return Tfe[e]},Ife={};Ife[Nfe("toStringTag")]="z";var Lfe="[object z]"===String(Ife),Rfe=!kfe(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Mfe=function(e){return"object"==typeof e?null!==e:wfe(e)},zfe=efe.document,Hfe=Mfe(zfe)&&Mfe(zfe.createElement),Vfe=function(e){return Hfe?zfe.createElement(e):{}},$fe=!Rfe&&!kfe(function(){return 7!=Object.defineProperty(Vfe("div"),"a",{get:function(){return 7}}).a}),Ufe=efe.String,Wfe=efe.TypeError,Gfe=function(e){if(Mfe(e))return e;throw Wfe(Ufe(e)+" is not an object")},qfe=Function.prototype.call,Kfe=qfe.bind?qfe.bind(qfe):function(){return qfe.apply(qfe,arguments)},Yfe=lfe({}.isPrototypeOf),Xfe=efe.Object,Zfe=Ffe?function(e){return"symbol"==typeof e}:function(e){var t=Efe("Symbol");return wfe(t)&&Yfe(t.prototype,Xfe(e))},Jfe=efe.String,Qfe=function(e){try{return Jfe(e)}catch(t){return"Object"}},ede=efe.TypeError,tde=function(e){if(wfe(e))return e;throw ede(Qfe(e)+" is not a function")},nde=function(e,t){var n=e[t];return null==n?void 0:tde(n)},rde=efe.TypeError,ode=efe.TypeError,ide=Nfe("toPrimitive"),ade=function(e){var t=function(e){if(!Mfe(e)||Zfe(e))return e;var t,n=nde(e,ide);if(n){if(t=Kfe(n,e,"string"),!Mfe(t)||Zfe(t))return t;throw ode("Can't convert object to primitive value")}return function(e){var t,n;if(wfe(t=e.toString)&&!Mfe(n=Kfe(t,e)))return n;if(wfe(t=e.valueOf)&&!Mfe(n=Kfe(t,e)))return n;throw rde("Can't convert object to primitive value")}(e)}(e);return Zfe(t)?t:t+""},ude=efe.TypeError,sde=Object.defineProperty,lde={f:Rfe?sde:function(e,t,n){if(Gfe(e),t=ade(t),Gfe(n),$fe)try{return sde(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ude("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cde=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fde=Rfe?function(e,t,n){return lde.f(e,t,cde(1,n))}:function(e,t,n){return e[t]=n,e},dde=lfe(Function.toString);wfe(rfe.inspectSource)||(rfe.inspectSource=function(e){return dde(e)});var pde,hde,gde,vde=rfe.inspectSource,yde=efe.WeakMap,mde=wfe(yde)&&/native code/.test(vde(yde)),bde=ofe("keys"),wde=function(e){return bde[e]||(bde[e]=bfe(e))},Ede={},Dde=efe.TypeError,Cde=efe.WeakMap;if(mde||rfe.state){var xde=rfe.state||(rfe.state=new Cde),Sde=lfe(xde.get),Ade=lfe(xde.has),Ode=lfe(xde.set);pde=function(e,t){if(Ade(xde,e))throw new Dde("Object already initialized");return t.facade=e,Ode(xde,e,t),t},hde=function(e){return Sde(xde,e)||{}},gde=function(e){return Ade(xde,e)}}else{var kde=wde("state");Ede[kde]=!0,pde=function(e,t){if(gfe(e,kde))throw new Dde("Object already initialized");return t.facade=e,fde(e,kde,t),t},hde=function(e){return gfe(e,kde)?e[kde]:{}},gde=function(e){return gfe(e,kde)}}var Bde={get:hde,enforce:function(e){return gde(e)?hde(e):pde(e,{})}},Fde=Function.prototype,Tde=Rfe&&Object.getOwnPropertyDescriptor,_de=gfe(Fde,"name"),Pde={PROPER:_de&&"something"===function(){}.name,CONFIGURABLE:_de&&(!Rfe||Rfe&&Tde(Fde,"name").configurable)},jde=Xce(function(e){var t=Pde.CONFIGURABLE,n=Bde.get,r=Bde.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;wfe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!gfe(i,"name")||t&&i.name!==f)&&fde(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==efe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:fde(e,n,i)):l?e[n]=i:nfe(n,i)})(Function.prototype,"toString",function(){return wfe(this)&&n(this).source||vde(this)})}),Nde=lfe({}.toString),Ide=lfe("".slice),Lde=function(e){return Ide(Nde(e),8,-1)},Rde=Nfe("toStringTag"),Mde=efe.Object,zde="Arguments"==Lde(function(){return arguments}()),Hde=Lfe?Lde:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Mde(e),Rde))?n:zde?Lde(t):"Object"==(r=Lde(t))&&wfe(t.callee)?"Arguments":r},Vde=Lfe?{}.toString:function(){return"[object "+Hde(this)+"]"};Lfe||jde(Object.prototype,"toString",Vde,{unsafe:!0});var $de,Ude={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Wde=Vfe("span").classList,Gde=Wde&&Wde.constructor&&Wde.constructor.prototype,qde=Gde===Object.prototype?void 0:Gde,Kde=lfe(lfe.bind),Yde=efe.Object,Xde=lfe("".split),Zde=kfe(function(){return!Yde("z").propertyIsEnumerable(0)})?function(e){return"String"==Lde(e)?Xde(e,""):Yde(e)}:Yde,Jde=Math.ceil,Qde=Math.floor,epe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Qde:Jde)(t)},tpe=Math.min,npe=function(e){return e>0?tpe(epe(e),9007199254740991):0},rpe=function(e){return npe(e.length)},ope=Array.isArray||function(e){return"Array"==Lde(e)},ipe=function(){},ape=[],upe=Efe("Reflect","construct"),spe=/^\s*(?:class|function)\b/,lpe=lfe(spe.exec),cpe=!spe.exec(ipe),fpe=function(e){if(!wfe(e))return!1;try{return upe(ipe,ape,e),!0}catch(t){return!1}},dpe=!upe||kfe(function(){var e;return fpe(fpe.call)||!fpe(Object)||!fpe(function(){e=!0})||e})?function(e){if(!wfe(e))return!1;switch(Hde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cpe||!!lpe(spe,vde(e))}:fpe,ppe=Nfe("species"),hpe=efe.Array,gpe=function(e,t){return new(ope(n=e)&&(r=n.constructor,(dpe(r)&&(r===hpe||ope(r.prototype))||Mfe(r)&&null===(r=r[ppe]))&&(r=void 0)),void 0===r?hpe:r)(0===t?0:t);var n,r},vpe=lfe([].push),ype=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=pfe(s),g=Zde(h),v=function(e,t){return tde(e),void 0===t?e:Kde?Kde(e,t):function(){return e.apply(t,arguments)}}(l,c),y=rpe(g),m=0,b=f||gpe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:vpe(w,d)}else switch(e){case 4:return!1;case 7:vpe(w,d)}return i?-1:r||o?o:w}},mpe=[ype(0),ype(1),ype(2),ype(3),ype(4),ype(5),ype(6),ype(7)][0],bpe=($de=[].forEach)&&kfe(function(){$de.call(null,function(){throw 1},1)})?[].forEach:function(e){return mpe(this,e,arguments.length>1?arguments[1]:void 0)},wpe=function(e){if(e&&e.forEach!==bpe)try{fde(e,"forEach",bpe)}catch(t){e.forEach=bpe}};for(var Epe in Ude)Ude[Epe]&&wpe(efe[Epe]&&efe[Epe].prototype);wpe(qde);var Dpe={}.propertyIsEnumerable,Cpe=Object.getOwnPropertyDescriptor,xpe={f:Cpe&&!Dpe.call({1:2},1)?function(e){var t=Cpe(this,e);return!!t&&t.enumerable}:Dpe},Spe=function(e){return Zde(ffe(e))},Ape=Object.getOwnPropertyDescriptor,Ope={f:Rfe?Ape:function(e,t){if(e=Spe(e),t=ade(t),$fe)try{return Ape(e,t)}catch(n){}if(gfe(e,t))return cde(!Kfe(xpe.f,e,t),e[t])}},kpe=Math.max,Bpe=Math.min,Fpe=function(e,t){var n=epe(e);return n<0?kpe(n+t,0):Bpe(n,t)},Tpe=function(e){return function(t,n,r){var o,i=Spe(t),a=rpe(i),u=Fpe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),_pe=lfe([].push),Ppe=function(e,t){var n,r=Spe(e),o=0,i=[];for(n in r)!gfe(Ede,n)&&gfe(r,n)&&_pe(i,n);for(;t.length>o;)gfe(r,n=t[o++])&&(~Tpe(i,n)||_pe(i,n));return i},jpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Npe=jpe.concat("length","prototype"),Ipe={f:Object.getOwnPropertyNames||function(e){return Ppe(e,Npe)}},Lpe={f:Object.getOwnPropertySymbols},Rpe=lfe([].concat),Mpe=Efe("Reflect","ownKeys")||function(e){var t=Ipe.f(Gfe(e)),n=Lpe.f;return n?Rpe(t,n(e)):t},zpe=function(e,t){for(var n=Mpe(t),r=lde.f,o=Ope.f,i=0;i<n.length;i++){var a=n[i];gfe(e,a)||r(e,a,o(t,a))}},Hpe=/#|\.prototype\./,Vpe=function(e,t){var n=Upe[$pe(e)];return n==Gpe||n!=Wpe&&(wfe(t)?kfe(t):!!t)},$pe=Vpe.normalize=function(e){return String(e).replace(Hpe,".").toLowerCase()},Upe=Vpe.data={},Wpe=Vpe.NATIVE="N",Gpe=Vpe.POLYFILL="P",qpe=Vpe,Kpe=Ope.f,Ype=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?efe:l?efe[u]||nfe(u,{}):(efe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Kpe(n,r))&&a.value:n[r],!qpe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;zpe(i,o)}(e.sham||o&&o.sham)&&fde(i,"sham",!0),jde(n,r,i,e)}},Xpe=Object.keys||function(e){return Ppe(e,jpe)},Zpe=Object.assign,Jpe=Object.defineProperty,Qpe=lfe([].concat),ehe=!Zpe||kfe(function(){if(Rfe&&1!==Zpe({b:1},Zpe(Jpe({},"a",{enumerable:!0,get:function(){Jpe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=Zpe({},e)[n]||Xpe(Zpe({},t)).join("")!=r})?function(e,t){for(var n=pfe(e),r=arguments.length,o=1,i=Lpe.f,a=xpe.f;r>o;)for(var u,s=Zde(arguments[o++]),l=i?Qpe(Xpe(s),i(s)):Xpe(s),c=l.length,f=0;c>f;)u=l[f++],Rfe&&!Kfe(a,s,u)||(n[u]=s[u]);return n}:Zpe;Ype({target:"Object",stat:!0,forced:Object.assign!==ehe},{assign:ehe});var the=Xce(function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,function(t,n){n===l&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,D=r.next,C=s;D!==t.tail&&!(f&&C>=f.reach);C+=D.value.length,D=D.next){var x=D.value;if(t.length>e.length)return;if(!(x instanceof i)){var S,A=1;if(m){if(!(S=a(E,C,e,y)))break;var O=S.index,k=S.index+S[0].length,B=C;for(B+=D.value.length;O>=B;)B+=(D=D.next).value.length;if(C=B-=D.value.length,D.value instanceof i)continue;for(var F=D;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,x=e.slice(C,B),S.index-=C}else if(!(S=a(E,0,x,y)))continue;O=S.index;var T=S[0],_=x.slice(0,O),P=x.slice(O+T.length),j=C+x.length;f&&j>f.reach&&(f.reach=j);var N=D.prev;if(_&&(N=l(t,N,_),C+=_.length),c(t,N,A),D=l(t,N,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,D,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,D.prev,C,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()},!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
- /**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),void 0!==Yce&&(Yce.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(e){e.selector+=", "+r}),t.hooks.add("before-sanity-check",function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}}),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()});!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)})}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,D,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=S+"|"+x,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}});var nhe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function rhe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+rhe(t)},0)}var ohe,ihe=efe.String,ahe=function(e){if("Symbol"===Hde(e))throw TypeError("Cannot convert a Symbol value to a string");return ihe(e)},uhe=function(){var e=Gfe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},she=efe.RegExp,lhe=kfe(function(){var e=she("a","y");return e.lastIndex=2,null!=e.exec("abcd")});lhe||kfe(function(){return!she("a","y").sticky});var che={BROKEN_CARET:lhe||kfe(function(){var e=she("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:lhe},fhe=Rfe?Object.defineProperties:function(e,t){Gfe(e);for(var n,r=Spe(t),o=Xpe(t),i=o.length,a=0;i>a;)lde.f(e,n=o[a++],r[n]);return e},dhe=Efe("document","documentElement"),phe=wde("IE_PROTO"),hhe=function(){},ghe=function(e){return"<script>"+e+"<\/script>"},vhe=function(e){e.write(ghe("")),e.close();var t=e.parentWindow.Object;return e=null,t},yhe=function(){try{ohe=new ActiveXObject("htmlfile")}catch(r){}var e,t;yhe="undefined"!=typeof document?document.domain&&ohe?vhe(ohe):((t=Vfe("iframe")).style.display="none",dhe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ghe("document.F=Object")),e.close(),e.F):vhe(ohe);for(var n=jpe.length;n--;)delete yhe.prototype[jpe[n]];return yhe()};Ede[phe]=!0;var mhe,bhe,whe=Object.create||function(e,t){var n;return null!==e?(hhe.prototype=Gfe(e),n=new hhe,hhe.prototype=null,n[phe]=e):n=yhe(),void 0===t?n:fhe(n,t)},Ehe=efe.RegExp,Dhe=kfe(function(){var e=Ehe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),Che=efe.RegExp,xhe=kfe(function(){var e=Che("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),She=Bde.get,Ahe=ofe("native-string-replace",String.prototype.replace),Ohe=RegExp.prototype.exec,khe=Ohe,Bhe=lfe("".charAt),Fhe=lfe("".indexOf),The=lfe("".replace),_he=lfe("".slice),Phe=(bhe=/b*/g,Kfe(Ohe,mhe=/a/,"a"),Kfe(Ohe,bhe,"a"),0!==mhe.lastIndex||0!==bhe.lastIndex),jhe=che.BROKEN_CARET,Nhe=void 0!==/()??/.exec("")[1];(Phe||Nhe||jhe||Dhe||xhe)&&(khe=function(e){var t,n,r,o,i,a,u,s=this,l=She(s),c=ahe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Kfe(khe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=jhe&&s.sticky,h=Kfe(uhe,s),g=s.source,v=0,y=c;if(p&&(h=The(h,"y",""),-1===Fhe(h,"g")&&(h+="g"),y=_he(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Bhe(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Nhe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Phe&&(r=s.lastIndex),o=Kfe(Ohe,p?n:s,y),p?o?(o.input=_he(o.input,v),o[0]=_he(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Phe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Nhe&&o&&o.length>1&&Kfe(Ahe,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&d)for(o.groups=a=whe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ihe=khe;Ype({target:"RegExp",proto:!0,forced:/./.exec!==Ihe},{exec:Ihe});var Lhe=Function.prototype,Rhe=Lhe.apply,Mhe=Lhe.bind,zhe=Lhe.call,Hhe="object"==typeof Reflect&&Reflect.apply||(Mhe?zhe.bind(Rhe):function(){return zhe.apply(Rhe,arguments)}),Vhe=Nfe("species"),$he=RegExp.prototype,Uhe=Nfe("match"),Whe=efe.TypeError,Ghe=Nfe("species"),qhe=lfe("".charAt),Khe=lfe("".charCodeAt),Yhe=lfe("".slice),Xhe=function(e){return function(t,n){var r,o,i=ahe(ffe(t)),a=epe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Khe(i,a))<55296||r>56319||a+1===u||(o=Khe(i,a+1))<56320||o>57343?e?qhe(i,a):r:e?Yhe(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Zhe=function(e,t,n){return t+(n?Xhe(e,t).length:1)},Jhe=efe.Array,Qhe=Math.max,ege=function(e,t,n){for(var r,o,i,a,u=rpe(e),s=Fpe(t,u),l=Fpe(void 0===n?u:n,u),c=Jhe(Qhe(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=ade(o))in r?lde.f(r,a,cde(0,i)):r[a]=i;return c.length=f,c},tge=efe.TypeError,nge=function(e,t){var n=e.exec;if(wfe(n)){var r=Kfe(n,e,t);return null!==r&&Gfe(r),r}if("RegExp"===Lde(e))return Kfe(Ihe,e,t);throw tge("RegExp#exec called on incompatible receiver")},rge=che.UNSUPPORTED_Y,oge=Math.min,ige=[].push,age=lfe(/./.exec),uge=lfe(ige),sge=lfe("".slice);!function(e,t,n,r){var o,i,a,u=Nfe(e),s=!kfe(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)}),l=s&&!kfe(function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Vhe]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e});if(!s||!l||n){var c=lfe(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=ahe(ffe(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Mfe(n=e)||!(void 0!==(r=n[Uhe])?r:"RegExp"==Lde(n)))return Kfe(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Kfe(Ihe,p,o))&&!((s=p.lastIndex)>d&&(uge(c,sge(o,d,u.index)),u.length>1&&u.index<o.length&&Hhe(ige,c,ege(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&age(p,"")||uge(c,""):uge(c,sge(o,d)),c.length>a?ege(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Kfe(i,this,e,t)}:i,[function(e,t){var n=ffe(this),r=null==e?void 0:nde(e,o);return r?Kfe(r,e,n,t):Kfe(a,ahe(n),e,t)},function(e,t){var n=Gfe(this),r=ahe(e),o=function(e,t,n,r,o){var i=lfe(e),a=t.exec;return a===Ihe||a===$he.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u,l,f,d=(u=RegExp,void 0===(f=Gfe(n).constructor)||null==(l=Gfe(f)[Ghe])?u:function(e){if(dpe(e))return e;throw Whe(Qfe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(rge?"g":"y"),g=new d(rge?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===nge(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=rge?0:m;var w,E=nge(g,rge?sge(r,m):r);if(null===E||(w=oge(npe(g.lastIndex+(rge?m:0)),r.length))===y)m=Zhe(r,m,p);else{if(uge(b,sge(r,y,m)),b.length===v)return b;for(var D=1;D<=E.length-1;D++)if(uge(b,E[D]),b.length===v)return b;m=y=w}}return uge(b,sge(r,y)),b}]);jde(String.prototype,e,f[0]),jde($he,u,f[1])}r&&fde($he[u],"sham",!0)}("split",0,!!kfe(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),rge),Ype({global:!0},{globalThis:efe}),Up&&(zp.fn.attr=Up);var lge=Pde.PROPER,cge=RegExp.prototype,fge=cge.toString,dge=lfe(uhe),pge=kfe(function(){return"/a/b"!=fge.call({source:"a",flags:"b"})}),hge=lge&&"toString"!=fge.name;(pge||hge)&&jde(RegExp.prototype,"toString",function(){var e=Gfe(this),t=ahe(e.source),n=e.flags;return"/"+t+"/"+ahe(void 0===n&&Yfe(cge,e)&&!("flags"in cge)?dge(e):n)},{unsafe:!0});var gge=function(){function e(){this.title=sP("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach(function(e){var n=e.text,r=e.value;t.push({text:n,value:r})});var o=this.getValue(e);return t.forEach(function(e){e.value===o?e.selected=!0:delete e.selected}),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!_f.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some(function(e){return e.value===n})?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Ad.setNodes(e,n,{match:function(e){return FO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=FO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=FO.getParentNode(e,t);return _f.isElement(n)?"pre"!==n.type?null:t:null},e}(),vge={renderStyle:function(e,t){var n=e,r=t,o="";return nhe.forEach(function(e){n[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=zp(e);if(!_f.isElement(t))return t;if("code"!==FO.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new gge},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},yge=/"/g,mge=lfe("".replace);Ype({target:"String",proto:!0,forced:kfe(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ahe(ffe(this)),r="<a",(r+=' name="'+mge(ahe(t),yge,""")+'"')+">"+n+"</a>";var t,n,r}});var bge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!sd.isText(e))return null;var t=FO.getParentNode(null,e);if(t&&"code"===FO.getNodeType(t)){var n=FO.getParentNode(null,t);if(n&&"pre"===FO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=the.languages[t];return n?the.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+rhe(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(y){t={error:y}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},wge=function(){return wge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wge.apply(this,arguments)},Ege=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=wge(wge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=wge(wge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=wge(wge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=wge(wge({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n,r,o=e.key,i=e.factory,a=e.config,u=NS(NS({},a),t||{});if(null!=PO[o])throw new Error("Duplicated key '"+o+"' in menu items");PO[o]=i,n=o,null!=(r=u)&&(_O[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;dT[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,fT.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;WO[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,UO.push(t)},e.registerPreParseHtml=function(e){var t;t=e,PB.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;NB[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,jB.push(t)},e.registerModule=function(e){Dge(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Dge(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(e){return Ege.registerMenu(e)}),n&&n.forEach(function(e){return Ege.registerRenderElem(e)}),r&&Ege.registerRenderStyle(r),o&&o.forEach(function(e){return Ege.registerElemToHtml(e)}),i&&Ege.registerStyleToHtml(i),a&&a.forEach(function(e){return Ege.registerPreParseHtml(e)}),u&&u.forEach(function(e){return Ege.registerParseElemHtml(e)}),s&&Ege.registerParseStyleHtml(s),l&&Ege.registerPlugin(l)}$G.forEach(function(e){return Dge(e)}),Dge(oQ),Dge(I6),Dge(tre),Dge(Kce),Dge(vge);var Cge='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',xge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Sge={hoverbarKeys:wge(wge({},xge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Ege.setEditorConfig(wge(wge({},Sge),{decorate:bge}));var Age={hoverbarKeys:xge};Ege.setSimpleEditorConfig(wge(wge({},Age),{decorate:bge}));var Oge={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:sP("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:sP("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:sP("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:sP("editor.image"),iconSvg:Cge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:sP("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Ege.setToolbarConfig(Oge);var kge={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:sP("editor.image"),iconSvg:Cge,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Ege.setSimpleToolbarConfig(kge);var Bge=Object.defineProperty,Fge=Object.defineProperties,Tge=Object.getOwnPropertyDescriptors,_ge=Object.getOwnPropertySymbols,Pge=Object.prototype.hasOwnProperty,jge=Object.prototype.propertyIsEnumerable,Nge=(e,t,n)=>t in e?Bge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ige=(e,t)=>{for(var n in t||(t={}))Pge.call(t,n)&&Nge(e,n,t[n]);if(_ge)for(var n of _ge(t))jge.call(t,n)&&Nge(e,n,t[n]);return e},Lge=(e,t)=>Fge(e,Tge(t));function Rge(e){let t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+="\nPlease use '@".concat(e,"' event instead of props"),t}var Mge=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const zge=h({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=r(null),o=g(null),i=r(""),a=()=>{if(!n.value)return;const r=m(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Ege.simpleEditorConfig:Ege.editorConfig,c=wge(wge({},l.hoverbarKeys||{}),u.hoverbarKeys||{});u_({selector:n,config:wge(wge(wge({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Ege.plugins})}({selector:n.value,mode:e.mode,content:r||[],html:e.defaultHtml||e.modelValue||"",config:Lge(Ige({},e.defaultConfig),{onCreated(n){if(o.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=Rge("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(i.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=Rge("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=Rge("onDestroyed");throw new Error(e)}},onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=Rge("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=Rge("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=Rge("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=Rge("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=Rge("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,e=>{o=e}),o}})})};return v(()=>{a()}),y(()=>e.modelValue,e=>{e!==i.value&&function(e){const t=o.value;null!=t&&t.setHtml(e)}(e)}),{box:n}}}),Hge={ref:"box",style:{height:"100%"}};var Vge=Mge(zge,[["render",function(e,t,n,r,o,i){return u(),a("div",Hge,null,512)}]]);const $ge=h({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=r(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");FO.getToolbar(n)||function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Ege.simpleToolbarConfig:Ege.toolbarConfig;(function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(pF(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=NS({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new d_(n,i);RA.set(a,e),MA.set(e,a)})(n,{selector:t,config:wge(wge({},u),o)})}({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return b(()=>{const{editor:t}=e;null!=t&&n(t)}),{selector:t}}}),Uge={ref:"selector"};var Wge=Mge($ge,[["render",function(e,t,n,r,o,i){return u(),a("div",Uge,null,512)}]]);const Gge={class:"border border-solid border-gray-100 h-full z-10"},qge={__name:"rich-edit",props:{modelValue:{type:String,default:""}},emits:["change","update:modelValue"],setup(e,{emit:t}){const o=t,i=e=>{o("change",e),o("update:modelValue",h.value)},l=n(),c=e,d=g(),h=r(""),v={},m={placeholder:"请输入内容...",MENU_CONF:{}};m.MENU_CONF.uploadImage={fieldName:"file",server:"/api/fileUploadAndDownload/upload?noSave=1",headers:{"x-token":l.token},customInsert(e,t){if(0===e.code){return void t(E(e.data.file.url),e.data.file.name)}p.error(e.msg)}},w(()=>{const e=d.value;null!=e&&e.destroy()});const b=e=>{d.value=e,h.value=c.modelValue};return y(()=>c.modelValue,()=>{h.value=c.modelValue}),(e,t)=>(u(),a("div",Gge,[s(f(Wge),{editor:d.value,"default-config":v,mode:"default"},null,8,["editor"]),s(f(Vge),{modelValue:h.value,"onUpdate:modelValue":t[0]||(t[0]=e=>h.value=e),class:"overflow-y-hidden mt-0.5",style:{height:"18rem"},"default-config":m,mode:"default",onOnCreated:b,onOnChange:i},null,8,["modelValue"])]))}};export{qge as _,B as a,O as b,D as c,C as d,x as e,A as f,k as g,S as u};
|